abstract class AWS::Client

Direct Known Subclasses

Defined in:

client.cr

Constant Summary

DEFAULT_HEADERS = HTTP::Headers {"Connection" => "keep-alive", "User-Agent" => "Crystal AWS #{VERSION}"}

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(access_key_id : String = AWS.access_key_id, secret_access_key : String = AWS.secret_access_key, region : String = AWS.region, endpoint : URI = URI.parse("https://#{service_name}.#{region}.amazonaws.com")) #

[View source]

Instance Method Detail

def delete(path : String, headers = HTTP::Headers.new) #

[View source]
def get(path : String, headers = HTTP::Headers.new) #

[View source]
def get(path : String, headers = HTTP::Headers.new, &block : HTTP::Client::Response -> ) #

[View source]
def head(path : String, headers : HTTP::Headers) #

[View source]
def post(path : String, body : String, headers = HTTP::Headers.new) #

[View source]
def put(path : String, body : IO, headers = HTTP::Headers.new) #

[View source]

Macro Detail

macro service_name #

[View source]