AzureStorage.Request.Context (AzureStorage v0.1.8)

Copy Markdown View Source

Summary

Types

t()

@type t() :: %AzureStorage.Request.Context{
  account: AzureStorage.Core.Account.t(),
  base_url: String.t(),
  body: String.t(),
  headers: map(),
  method: String.t() | atom(),
  path: String.t(),
  service: String.t(),
  url: String.t()
}

Functions

build(context, options \\ [])

@spec build(
  t(),
  keyword()
) :: t()

Build request context

Supported options

  • :method - Required. Request method

  • :path (String.t/0) - Required. Request path

  • :body (String.t/0) - Request body The default value is "".

  • :headers (term/0) - Additional request headers The default value is %{}.

create(account, service, app_version \\ "2019-07-07")

get_canonical_headers(context)

get_canonical_resource(context)

get_generic_service_canonical_resource(account_name, path)