class

Aws::Utils::Http

Inherits Reference / Object

Constructors

new(signer : Awscr::Signer::Signers::Interface, service_name : String, region : String, custom_endpoint : String | Nil = nil)
Source

Instance methods

delete(path, headers : Hash(String, String) = Hash(String, String).new)

Issue a DELETE request to the path with optional headers

http = Http.new(signer)
http.delete("/")
Source
get(path)

Issue a GET request to the path

http = Http.new(signer)
http.get("/")
Source
head(path)

Issue a HEAD request to the path

http = Http.new(signer)
http.head("/")
Source
post(path, body = nil, headers : Hash(String, String) = Hash(String, String).new)

Issue a POST request to the path with optional headers, and body

http = Http.new(signer)
http.post("/", body: IO::Memory.new("test"))
Source
put(path : String, body : IO | String, headers : Hash(String, String) = Hash(String, String).new)

Issue a PUT request to the path with optional headers and body

http = Http.new(signer)
http.put("/", body: IO::Memory.new("test"))
Source

Nested types