class Worker::HudbaClient::HttpClient

Defined in:

worker/hudba_client/http_client.cr

Constant Summary

CONNECTION_TIMEOUT = 5.seconds
Log = Worker::HudbaClient::Log.for("http")
RW_TIMEOUT = 40.seconds

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def get(subpath : String, body : String | Nil = nil) #

[View source]
def get_raw(subpath : String, body : String | Nil = nil) : HTTP::Client::Response #

[View source]
def get_raw(subpath : String, body : String | Nil = nil, &block : HTTP::Client::Response -> Nil) : Nil #

[View source]
def post(subpath : String, body : String | Nil = nil) #

[View source]
def post_raw(subpath : String, body : String | Nil = nil) : HTTP::Client::Response #

[View source]