ReqProxy (req_proxy v0.2.1)

Copy Markdown View Source

Req step to read from environment variables and inject the appropriate proxy settings.

Request options

  • :proxy - Override any other proxy environment or connect_options. Passing an empty string "" or the atom :none disables proxying. Passing a URL will use that as the proxy.

The :proxy option can also be passed to attach/2.

Summary

Functions

Attach to a Req.Request to add the proxy step

Functions

attach(request, options \\ [])

@spec attach(Req.Request.t(), keyword()) :: Req.Request.t()

Attach to a Req.Request to add the proxy step:

Req.new()
|> ReqProxy.attach()