HTTP.Request (http_fetch v0.5.0)
Represents an HTTP request that can be serialized into :httpc.request arguments.
Summary
Functions
Converts an HTTP.Request
struct into arguments suitable for :httpc.request/4
.
Types
@type body_content() :: String.t() | charlist() | HTTP.FormData.t() | nil
@type httpc_client_opts() :: Keyword.t()
@type httpc_options() :: Keyword.t()
@type method() :: :head | :get | :post | :put | :delete | :patch
@type t() :: %HTTP.Request{ body: body_content(), content_type: content_type(), headers: HTTP.Headers.t(), http_options: httpc_options(), method: method(), options: httpc_client_opts(), url: url() }
@type url() :: URI.t()
Functions
Converts an HTTP.Request
struct into arguments suitable for :httpc.request/4
.