View Source AnyHttp.Client behaviour (Any HTTP v0.1.0)

Defines the behaviour for the HTTP adapters to implement.

Summary

Types

Callbacks

Link to this callback

delete(url, headers, body)

View Source
@callback delete(url(), headers(), body()) :: {:ok, response()}
Link to this callback

delete(url, headers, body, opts)

View Source
@callback delete(url(), headers(), body(), opts()) :: {:ok, response()}
@callback get(url(), headers(), body()) :: {:ok, response()}
Link to this callback

get(url, headers, body, opts)

View Source
@callback get(url(), headers(), body(), opts()) :: {:ok, response()}
@callback head(url(), headers()) :: {:ok, response()}
Link to this callback

head(url, headers, opts)

View Source
@callback head(url(), headers(), opts()) :: {:ok, response()}
Link to this callback

patch(url, headers, body)

View Source
@callback patch(url(), headers(), body()) :: {:ok, response()}
Link to this callback

patch(url, headers, body, opts)

View Source
@callback patch(url(), headers(), body(), opts()) :: {:ok, response()}
Link to this callback

post(url, headers, body)

View Source
@callback post(url(), headers(), body()) :: {:ok, response()}
Link to this callback

post(url, headers, body, opts)

View Source
@callback post(url(), headers(), body(), opts()) :: {:ok, response()}
@callback put(url(), headers(), body()) :: {:ok, response()}
Link to this callback

put(url, headers, body, opts)

View Source
@callback put(url(), headers(), body(), opts()) :: {:ok, response()}