Acmex v0.1.2 Acmex.Request View Source

This module is responsible for requesting the ACME API.

Link to this section Summary

Functions

Makes a GET request to fetch an unauthenticated resource.

Gets a header by a given key.

Makes a HEAD request to an URL.

Makes a POST request to fetch an authenticated resource.

Link to this section Types

Link to this type

response()

View Source
response() :: {:ok, HTTPoison.Response.t()} | {:error, HTTPoison.Error.t()}

Link to this section Functions

Link to this function

get(url, headers \\ [], handler \\ :decode)

View Source
get(String.t(), keyword(), atom()) :: response()

Makes a GET request to fetch an unauthenticated resource.

Link to this function

get_header(headers, key)

View Source
get_header(keyword(), String.t()) :: String.t() | nil

Gets a header by a given key.

Makes a HEAD request to an URL.

Link to this function

post(url, jwk, payload, nonce, kid \\ nil)

View Source
post(String.t(), tuple(), map(), String.t(), String.t() | nil) :: response()

Makes a POST request.

Link to this function

post_as_get(url, jwk, nonce, kid, headers \\ [])

View Source

Makes a POST request to fetch an authenticated resource.