IndieWeb v0.0.15 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
adapter()
adapter() :: IndieWeb.HTTP.Adapter.t()
adapter() :: IndieWeb.HTTP.Adapter.t()
Obtains an implementation of a IndieWeb.Http.Adapter
module.
delete(uri, opts \\ [])
Sends a DELETE request to the specified URI.
See request/3
for more information about making requests.
extract_link_header_values(headers)
get(uri, opts \\ [])
Sends a GET request to the specified URI.
See request/3
for more information about making requests.
head(uri, opts \\ [])
Sends a HEAD request to the specified URI.
See request/3
for more information about making requests.
make_absolute_uri(path, base_uri)
options(uri, opts \\ [])
Sends a OPTIONS request to the specified URI.
See request/3
for more information about making requests.
patch(uri, opts \\ [])
Sends a PATCH request to the specified URI.
See request/3
for more information about making requests.
post(uri, opts \\ [])
Sends a POST request to the specified URI.
See request/3
for more information about making requests.
put(uri, opts \\ [])
Sends a PUT request to the specified URI.
See request/3
for more information about making requests.
request(uri, method \\ :get, opts \\ [])
request(binary(), atom(), keyword()) ::
{:ok, IndieWeb.Http.Response.t()} | {:error, IndieWeb.Http.Error.t()}
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.