Pleroma v1.1.9-10-g42f76306+dev Pleroma.HTTP View Source

Link to this section Summary

Link to this section Types

Link to this type

t()

View Source
t() :: Pleroma.HTTP

Link to this section Functions

Link to this function

get(url, headers \\ [], options \\ [])

View Source

Performs GET request.

See Pleroma.HTTP.request/5

Link to this function

post(url, body, headers \\ [], options \\ [])

View Source

Performs POST request.

See Pleroma.HTTP.request/5

Link to this function

process_request_options(options)

View Source
Link to this function

request(method, url, body \\ "", headers \\ [], options \\ [])

View Source

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}