Assent.HTTPAdapter.HTTPRequest (Assent v0.4.0)

Copy Markdown View Source

Struct used by HTTP adapters to normalize HTTP requests.

The :url, :headers, and :body fields are omitted from Inspect output as they may contain sensitive data.

Examples

iex> request = %Assent.HTTPAdapter.HTTPRequest{method: :get, url: "https://example.com"}
iex> inspect(request)
"#Assent.HTTPAdapter.HTTPRequest<method: :get, ...>"

Summary

Types

t()

@type t() :: %Assent.HTTPAdapter.HTTPRequest{
  body: binary() | nil,
  headers: [{binary(), binary()}],
  method: :get | :post,
  url: binary()
}