class

Awscr::Signer::V4::Request

Inherits Reference < Object

Represents a request. It can have headers and query params.

request = Request.new("GET", URI.parse("/"), "")
request.headers.add(Header.new("k", "v"))
request.headers.to_a
request.params.add("k", "v")
request.to_s

Constructors

new(method : String, path : String, body : IO | String | Nil, encode : Bool = true)
Source

Class methods

encode_path(path)

Encodes the path except '/' and '~'

Source

Instance methods

body

The request body

Source
date

The time of the request

Source
digest

The computed digest of the request body

Source
headers

The collection of Headers. Held in a HeaderCollection

Source
host
Source
query

The collection of query string paramters. Held in a QueryString

Source
to_s(io : IO)

Returns the request as a String.

Source