Http (fnord v0.7.16)
View SourceSummary
Functions
Sends a POST request with a JSON payload to the specified URL with the given headers. Returns a tuple with the response status and body, or an error if the request fails.
Types
@type http_error() :: {:http_error, {http_status(), String.t()}}
@type http_status() :: integer()
@type options() :: keyword()
@type payload() :: map()
@type response() :: success() | http_error() | transport_error()
@type success() :: {:ok, map()}
@type transport_error() :: {:transport_error, any()}
@type url() :: String.t()