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