View Source ActivityPub.Federator.HTTP (Bonfire v0.9.10-classic-beta.169)
Module 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
@type t() :: ActivityPub.Federator.HTTP
Functions
Makes a DELETE request
Makes a GET request
Link to this function
http_request(method, url, body \\ "", headers \\ [], options \\ [])
View SourceBuilds 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