Current section
Files
Jump to
Current section
Files
lib/reverse_proxy_plug/http_client.ex
defmodule ReverseProxyPlug.HTTPClient do
@moduledoc """
Behaviour defining the HTTP client interface needed for reverse proxying.
"""
@callback request(HTTPoison.Request.t()) ::
{:ok, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()}
| {:error, HTTPoison.Error.t()}
end