IndieWeb v0.0.12 IndieWeb.Http

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()
adapter() :: IndieWeb.HTTP.Adapter.t()

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

Link to this function

delete(uri, opts \\ [])

Sends a DELETE request to the specified URI.

See request/3 for more information about making requests.

Link to this function

get(uri, opts \\ [])

Sends a GET request to the specified URI.

See request/3 for more information about making requests.

Link to this function

head(uri, opts \\ [])

Sends a HEAD request to the specified URI.

See request/3 for more information about making requests.

Link to this function

options(uri, opts \\ [])

Sends a OPTIONS request to the specified URI.

See request/3 for more information about making requests.

Link to this function

patch(uri, opts \\ [])

Sends a PATCH request to the specified URI.

See request/3 for more information about making requests.

Link to this function

post(uri, opts \\ [])

Sends a POST request to the specified URI.

See request/3 for more information about making requests.

Link to this function

put(uri, opts \\ [])

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 \\ [])
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.