Klaviyo.Request (klaviyo v3.0.0)
HTTP request sent to an endpoint.
Link to this section Summary
Functions
Builds a Klaviyo.HTTP.Request
struct.
Adds a new request header if not present. Otherwise, replaces the previous value.
Link to this section Types
@type t() :: %Klaviyo.Request{ body: String.t(), headers: Klaviyo.HTTP.headers_t(), method: Klaviyo.HTTP.method_t(), private: map(), url: String.t() }
Link to this section Functions
Link to this function
new(operation, opts)
@spec new(Klaviyo.RequestOperation.t(), Klaviyo.Opts.t()) :: t()
Builds a Klaviyo.HTTP.Request
struct.
Link to this function
put_header(request, key, value)
Adds a new request header if not present. Otherwise, replaces the previous value.