View Source Assent.HTTPAdapter behaviour (Assent v0.2.7)
HTTP adapter helper module.
Usage
defmodule MyApp.MyHTTPAdapter do
@behaviour Assent.HTTPAdapter
@impl true
def request(method, url, body, headers, opts) do
# ...
end
end
Summary
Functions
Sets a user agent header
Types
Callbacks
Functions
Sets a user agent header
The header value will be Assent-VERSION
with VERSION being the :vsn
of
:assent
app.