class AsyncHttp::Client
- AsyncHttp::Client
- Reference
- Object
Defined in:
async-http.crConstructors
Instance Method Summary
- #compress=(compress : Bool)
- #compress? : Bool
- #connect_timeout=(connect_timeout : Number)
- #connect_timeout=(connect_timeout : Time::Span)
- #delete(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
- #delete(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil, &)
- #exec(request : HTTP::Request) : HTTP::Client::Response
- #exec(request : HTTP::Request, &)
- #get(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
- #get(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil, &)
- #head(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
- #head(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil, &)
- #options(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
- #options(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil, &)
- #patch(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
- #patch(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil, &)
- #post(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
- #post(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil, &)
- #put(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
- #put(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil, &)
- #read_timeout=(read_timeout : Number)
- #read_timeout=(read_timeout : Time::Span)
- #uri : URI
- #write_timeout=(write_timeout : Number)
- #write_timeout=(write_timeout : Time::Span)
Macro Summary
Constructor Detail
def self.new(uri : URI, dynamic : Bool = false, keep : UInt32 = 2, capacity : UInt32 | Nil = nil, clean_after : UInt32 = 5)
#
Instance Method Detail
def delete(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
#
def get(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
#
def head(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
#
def options(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
#
def patch(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
#
def post(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
#
def put(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response
#