PowAssent v0.1.0-rc.2 PowAssent.HTTPAdapter.Httpc View Source

HTTP adapter module for making http requests.

SSL support will automatically be enabled if the :certifi and :ssl_verify_fun libraries exists in your project. You can also override the httc opts by setting config :pow, httpc_opts: opts.

Link to this section Summary

Link to this section Types

Link to this type headers() View Source
headers() :: [{binary(), binary()}]
Link to this type method() View Source
method() :: :get | :post

Link to this section Functions

Link to this function request(method, url, body, headers, httpc_opts \\ Application.get_env(:pow, :httpc_opts)) View Source
request(method(), binary(), body(), headers(), Keyword.t()) ::
  {:ok, map()} | {:error, map()}

Make a HTTP request using :httpc.