HTTP.Request (http_fetch v0.1.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 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: headers(), method: method(), options: httpc_options(), opts: httpc_client_opts(), url: url() }
Functions
Converts an HTTP.Request
struct into arguments suitable for :httpc.request/4
.