ActivityPub.Federator.HTTP (Bonfire v1.0.0-social-rc.3.22)
View SourceModule for building and performing HTTP requests.
Summary
Functions
Makes a DELETE request
Makes a GET request
Builds and perform http request.
Makes a POST request
Makes a PUT request
Types
Functions
Makes a DELETE request
Makes a GET request
Builds and perform http request.
Arguments:
method - :get, :post, :put, :delete
url
body
headers - a keyworld list of headers, e.g. [{"content-type", "text/plain"}]
options - custom, per-request middleware or adapter options
Returns:
{:ok, %Tesla.Env{}} or {:error, error}
Makes a POST request
Makes a PUT request