View Source HTTPX.Request (HTTPX v0.1.6)

A prepared HTTP request.

Can be modified by processors and replayed multiple times.

Link to this section Summary

Types

t()

A prepared HTTP request.

Link to this section Types

@type t() :: %HTTPX.Request{
  body: binary(),
  fail: boolean(),
  format: atom(),
  headers: [{String.t(), String.t()}],
  meta: map(),
  method: atom(),
  settings: list(),
  url: String.t()
}

A prepared HTTP request.

Can be modified by processors and replayed multiple times.

Link to this section Functions

Link to this function

prepare(method, url, options \\ [])

View Source
@spec prepare(atom(), String.t(), Keyword.t()) :: t()

Prepare a request.