HTTPX v0.10.0-rc0 HTTPX.Process View Source

HTTPX process module.

Applies all processors to the HTTPX request.

Link to this section Summary

Functions

Optimizes the HTTPX.Process module, unless config :httpx, dynamic: true.

Apply all post parse processors.

Apply all post request processors.

Apply all pre request processors.

Link to this section Functions

Link to this function

optimize() View Source
optimize() :: :ok

Optimizes the HTTPX.Process module, unless config :httpx, dynamic: true.

The optimization involves optimizing the calls to all processors.

Link to this function

post_parse(req) View Source
post_parse({:ok, HTTPX.Response.t()}) ::
  {:ok, HTTPX.Response.t()} | {:error, term()}

Apply all post parse processors.

Link to this function

post_request(req) View Source
post_request(tuple()) :: {:ok, tuple()} | {:error, term()}

Apply all post request processors.

Link to this function

pre_request(req) View Source
pre_request(HTTPX.Request.t()) :: HTTPX.Request.t() | {:error, term()}

Apply all pre request processors.