View Source Cosmox.Requests.RequestHeaders (Cosmox v0.1.1)

Handles the construction and verification of the default request headers.

Link to this section Summary

Functions

Gets the current CosmosDB REST api version.

Gets the default headers, provided with the command date and the authorization string.

Link to this section Functions

Link to this function

get_current_api_version()

View Source
@spec get_current_api_version() :: binary()

Gets the current CosmosDB REST api version.

Link to this function

get_default_headers(authorization_string, request_date)

View Source
@spec get_default_headers(
  authorization_string :: binary(),
  request_date :: NaiveDateTime.t() | binary()
) :: Finch.Request.headers()

Gets the default headers, provided with the command date and the authorization string.