GcsSignedUrl.Headers (gcs_signed_url v0.4.3) View Source

Transforms headers for a request to representations required by the Google URL signature algorithm

Link to this section Summary

Functions

Creates a %GcsSignedUrl.Headers{} struct from the given headers keyword list. The struct contains the signed headers, such as the canonical headers

Link to this section Types

Specs

t() :: %GcsSignedUrl.Headers{canonical: String.t(), signed: String.t()}

Link to this section Functions

Specs

create(Keyword.t()) :: t()

Creates a %GcsSignedUrl.Headers{} struct from the given headers keyword list. The struct contains the signed headers, such as the canonical headers

Examples

iex> GcsSignedUrl.Headers.create(["X-Foo": "foo", "X-Foo": "bar", "Content-Type": "application/json"])
%GcsSignedUrl.Headers{signed: "content-type,x-foo", canonical:...}