Inngest.HTTPClient.Request (Inngest v0.3.0)

Copy Markdown View Source

SDK-owned outbound HTTP request shape.

url is the executable request target. The separate base_url, path, and query fields are preserved for tests, diagnostics, and custom adapters that want to route or pool by request role without reparsing URLs.

Summary

Types

header()

@type header() :: {binary(), binary()}

method()

@type method() :: :get | :post | :put | :patch | :delete

t()

@type t() :: %Inngest.HTTPClient.Request{
  adapter_opts: Keyword.t(),
  base_url: binary(),
  body: term(),
  headers: [header()],
  method: method(),
  path: binary(),
  pool_timeout: timeout(),
  query: Enumerable.t() | nil,
  receive_timeout: timeout(),
  request_timeout: timeout(),
  url: binary()
}