Klaviyo.Response (klaviyo v3.0.0)
HTTP response returned by a request.
Link to this section Summary
Functions
Builds a Klaviyo.Response
struct.
Link to this section Types
@type t() :: %Klaviyo.Response{ body: map(), headers: Klaviyo.HTTP.headers_t(), status_code: Klaviyo.HTTP.status_code_t() }
Link to this section Functions
Link to this function
new(response, opts)
@spec new(Klaviyo.HTTP.Response.t(), Klaviyo.Opts.t()) :: t()
Builds a Klaviyo.Response
struct.
Only decodes the body of a response if the value of the "content-type" header is supported. Otherwise, the body will be returned as is.
supported-encodings
Supported Encodings
application/json