Nadia.HTTPRequest (nadia v1.6.0)

View Source

Request struct passed to Nadia HTTP adapters.

Multipart bodies use {:multipart, parts}. File parts have the form {:file, source, disposition, headers}, where source is a local path, {:bytes, iodata, size}, or {:stream, enumerable, size}. Custom adapters must consume stream sources once and must not silently retry them.

Summary

Types

t()

@type t() :: %Nadia.HTTPRequest{
  body: term(),
  headers: list(),
  method: atom(),
  options: keyword(),
  url: binary()
}