Klaviyo.Request (klaviyo v3.1.0)

HTTP request sent to an endpoint.

Summary

Functions

Builds a Klaviyo.HTTP.Request struct.

Adds a new request header if not present. Otherwise, replaces the previous value.

Types

@type t() :: %Klaviyo.Request{
  body: String.t(),
  headers: Klaviyo.HTTP.headers_t(),
  method: Klaviyo.HTTP.method_t(),
  private: map(),
  url: String.t()
}

Functions

Link to this function

authentication_token(arg1)

Link to this function

encode_body(body, atom, opts)

@spec encode_body(Enum.t(), atom(), Klaviyo.Opts.t()) :: String.t()
@spec encoding(atom()) :: String.t()
Link to this function

new(operation, opts)

Builds a Klaviyo.HTTP.Request struct.

Link to this function

put_header(request, key, value)

@spec put_header(t(), String.t(), String.t()) :: t()

Adds a new request header if not present. Otherwise, replaces the previous value.

Link to this function

put_new_header(request, key, value)

@spec put_new_header(t(), String.t(), String.t()) :: t()