class Awscr::Signer::V4::Request
- Awscr::Signer::V4::Request
- Reference
- Object
Overview
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
Defined in:
awscr-signer/v4/request.crConstructors
Class Method Summary
-
.encode_path(path)
Encodes the path except '/' and '~'
Instance Method Summary
-
#body : IO
The request body
-
#date
The time of the request
-
#digest : String
The computed digest of the request body
-
#headers : Awscr::Signer::HeaderCollection
The collection of
Header
s. - #host
-
#query : Awscr::Signer::QueryString
The collection of query string paramters.
-
#to_s(io : IO)
Returns the request as a String.
Constructor Detail
def self.new(method : String, path : String, body : IO | String | Nil, encode : Bool = true)
#
Class Method Detail
Instance Method Detail
def headers : Awscr::Signer::HeaderCollection
#
The collection of Header
s. Held in a
HeaderCollection
def query : Awscr::Signer::QueryString
#
The collection of query string paramters. Held in a
QueryString