Aws::Utils::Http
Inherits Reference / Object
Constructors
new(signer : Awscr::Signer::Signers::Interface, service_name : String, region : String, custom_endpoint : String | Nil = nil)
SourceInstance 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("/")
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"))
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"))