exhal v7.1.1 ExHal.Client behaviour

Behavior related to making HTTP requests.

Examples

iex> ExHal.Client.new()
%ExHal.Client{}

Link to this section Summary

Types

The return value of any function that makes an HTTP request

t()

Represents a client configuration/connection. Create with new function

Link to this section Types

The return value of any function that makes an HTTP request.

Represents a client configuration/connection. Create with new function.

Link to this section Functions

Link to this function add_headers(client, headers)

Returns client that will include the specified headers in any request made with it.

Link to this function get(client, url, opts \\ [])

Returns a new client.

Link to this function patch(client, url, body, opts \\ [])
Link to this function post(client, url, body, opts \\ [])
Link to this function put(client, url, body, opts \\ [])

Link to this section Callbacks

Link to this callback patch(arg0, arg1, <<>>, arg3)
Link to this callback post(arg0, arg1, <<>>, arg3)
Link to this callback put(arg0, arg1, <<>>, arg3)