View Source HTTPX.Request (HTTPX v0.1.9)

A prepared HTTP request.

Can be modified by processors and replayed multiple times.

Summary

Types

t()

A prepared HTTP request.

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.

Functions

Link to this function

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

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

Prepare a request.