GcsSignedUrl.Headers (gcs_signed_url v0.6.0)

Copy Markdown View Source

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

Summary

Functions

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

Types

t()

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

Functions

create(headers)

@spec 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:...}