DodoPayments.HTTP.Request (dodo_payments v0.1.0)

Copy Markdown View Source

Transport-neutral request passed to DodoPayments.ClientModule.request/2.

It is fully prepared by the SDK. A client module must treat its method, URL, headers, body, timeout, response mode, and body limit as authoritative and must perform at most one network attempt.

Summary

Types

t()

@type t() :: %DodoPayments.HTTP.Request{
  body: iodata() | nil,
  headers: [{String.t(), String.t()}],
  max_body_bytes: pos_integer() | :infinity,
  method: atom(),
  response_mode: :raw,
  timeout: pos_integer(),
  url: URI.t() | String.t()
}