class AsyncHttp::Client

Defined in:

async-http.cr

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(uri : URI, dynamic : Bool = false, keep : UInt32 = 2, capacity : UInt32 | Nil = nil, clean_after : UInt32 = 5) #

[View source]

Instance Method Detail

def compress=(compress : Bool) #

[View source]
def compress? : Bool #

[View source]
def connect_timeout=(connect_timeout : Number) #

[View source]
def connect_timeout=(connect_timeout : Time::Span) #

[View source]
def delete(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response #

[View source]
def delete(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil, &) #

[View source]
def exec(request : HTTP::Request) : HTTP::Client::Response #

[View source]
def exec(request : HTTP::Request, &) #

[View source]
def get(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response #

[View source]
def get(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil, &) #

[View source]
def head(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response #

[View source]
def head(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil, &) #

[View source]
def options(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response #

[View source]
def options(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil, &) #

[View source]
def patch(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response #

[View source]
def patch(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil, &) #

[View source]
def post(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response #

[View source]
def post(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil, &) #

[View source]
def put(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil) : HTTP::Client::Response #

[View source]
def put(path, headers : HTTP::Headers | Nil = nil, body : HTTP::Client::BodyType = nil, &) #

[View source]
def read_timeout=(read_timeout : Number) #

[View source]
def read_timeout=(read_timeout : Time::Span) #

[View source]
def uri : URI #

[View source]
def write_timeout=(write_timeout : Number) #

[View source]
def write_timeout=(write_timeout : Time::Span) #

[View source]

Macro Detail

macro timeout(name) #

[View source]