ReqClient.Channel behaviour (Ehelper v0.2.8)

View Source

Adapter channel behaviour to unify channel impl.

Summary

Callbacks

content_wise_resp_body?()

(optional)
@callback content_wise_resp_body?() :: boolean()

remote_req(t, keyword)

@callback remote_req(
  URI.t(),
  keyword()
) :: {:ok, map()} | {:error, term()}

Functions

content_wise_body(body, headers)

debug?(opts \\ [])

env_http_proxy()

env_https_proxy()

env_no_proxy_list()

find_system_env(keys, default \\ nil)

get_resp_content_encoding(headers)

get_resp_content_type(headers)

Get content-type from response headers

get_url(url)

is_json_resp?(headers)

normalize_resp_headers(headers \\ [])

shortcut_urls()