ExMagicEden.Http.Request (ex_magic_eden v0.0.3)

Link to this section Summary

Link to this section Types

@type domain() :: String.t()
@type params() :: map()
@type path() :: String.t()
@type protocol() :: String.t()
@type t() :: %ExMagicEden.Http.Request{
  body: String.t() | nil,
  domain: domain() | nil,
  headers: keyword(),
  path: path(),
  protocol: protocol() | nil,
  query: String.t() | nil,
  verb: verb() | nil
}
@type verb() :: :get | :post | :put | :delete

Link to this section Functions

@spec for_path(path()) :: t()
@spec url(t()) :: String.t()
Link to this function

with_domain(request, domain)

@spec with_domain(t(), domain()) :: t()
Link to this function

with_protocol(request, protocol)

@spec with_protocol(t(), protocol()) :: t()
Link to this function

with_query(request, params)

@spec with_query(t(), params()) :: t()