IndieWeb v0.0.38 IndieWeb.Http View Source

Provides a facade for handling HTTP actions.

Link to this section Summary

Functions

Obtains an implementation of a IndieWeb.Http.Adapter module

Sends a DELETE request to the specified URI

Sends a GET request to the specified URI

Sends a HEAD request to the specified URI

Sends a OPTIONS request to the specified URI

Sends a PATCH request to the specified URI

Sends a POST request to the specified URI

Sends a PUT request to the specified URI

Sends a HTTP request to the URI uri with the provided options

Link to this section Functions

Link to this function

adapter() View Source
adapter() :: IndieWeb.HTTP.Adapter.t()

Obtains an implementation of a IndieWeb.Http.Adapter module.

Sends a DELETE request to the specified URI.

See request/3 for more information about making requests.

Sends a GET request to the specified URI.

See request/3 for more information about making requests.

Sends a HEAD request to the specified URI.

See request/3 for more information about making requests.

Link to this function

make_absolute_uri(path, base_uri) View Source

Link to this function

options(uri, opts \\ []) View Source

Sends a OPTIONS request to the specified URI.

See request/3 for more information about making requests.

Sends a PATCH request to the specified URI.

See request/3 for more information about making requests.

Sends a POST request to the specified URI.

See request/3 for more information about making requests.

Sends a PUT request to the specified URI.

See request/3 for more information about making requests.

Link to this function

request(uri, method \\ :get, opts \\ []) View Source
request(binary(), atom(), keyword()) ::
  {:ok, IndieWeb.Http.Response.t()} | {:error, IndieWeb.Http.Error.t()}

Sends a HTTP request to the URI uri with the provided options.