Awscr::S3::Http
Constructors
new(signer : Awscr::Signer::Signers::Interface, endpoint : URI, factory : HttpClientFactory = DefaultHttpClientFactory.new)
SourceInstance methods
Issue a DELETE request to the path with optional headers
http = Http.new(signer)
http.delete("/")
Issue a GET request to the path
http = Http.new(signer)
http.get("/")
Issue a GET request to the path
http = Http.new(signer)
http.get("/") do |resp|
pp resp
end
Issue a HEAD request to the path
http = Http.new(signer)
http.head("/")
Issue a POST request to the path with optional headers, and body
http = Http.new(signer)
http.post("/", body: IO::Memory.new("test"))