class Worker::ApiClient::HttpClient

Defined in:

worker/api_client/http_client.cr

Constant Summary

CONNECTION_TIMEOUT = 5.seconds
Log = Worker::ApiClient::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) : String #

[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 put(subpath : String, body : String | Nil = nil) : String #

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

[View source]