Deputy.HTTPClient.Request (Deputy v0.5.0)

Copy Markdown View Source

Adapter-neutral representation of a single Deputy API HTTP request.

Built by Deputy.request/4 and consumed by every Deputy.HTTPClient implementation. Lets alternative HTTP backends exist without speaking Req's keyword-list shape.

Summary

Types

t()

@type t() :: %Deputy.HTTPClient.Request{
  adapter_opts: keyword(),
  body: map() | list() | nil,
  headers: [{String.t(), String.t()}],
  method: atom(),
  params: map() | keyword() | nil,
  retry: term() | nil,
  url: String.t()
}