Sendio.Client.ReqClient (sendio v1.1.0)
Req client for send.io. This is the default HTTP client used.
Summary
Functions
Sends a request to a send.io API endpoint, given list of request opts.
Functions
Link to this function
request(client, opts)
@spec request(Sendio.Client.t(), Keyword.t()) :: {:ok, %{body: map(), status: pos_integer()}} | {:error, any()}
Sends a request to a send.io API endpoint, given list of request opts.
opts holds :method, :url, :body, :query, opts: [path_params: ...] and
:headers, a list of extra {name, value} request headers (for example
{"idempotency-key", key}).