View Source GcsSignedUrl.Headers (gcs_signed_url v0.4.6)

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

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

Link to this section Functions

@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

Examples

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