class Worker::ApiClient::HttpClient
- Worker::ApiClient::HttpClient
- Reference
- Object
Defined in:
worker/api_client/http_client.crConstant Summary
-
CONNECTION_TIMEOUT =
5.seconds
-
Log =
Worker::ApiClient::Log.for("http")
-
RW_TIMEOUT =
40.seconds
Constructors
Instance Method Summary
- #get(subpath : String, body : String | Nil = nil) : String
- #get_raw(subpath : String, body : String | Nil = nil) : HTTP::Client::Response
- #get_raw(subpath : String, body : String | Nil = nil, &block : HTTP::Client::Response -> Nil) : Nil
- #put(subpath : String, body : String | Nil = nil) : String
- #put_raw(subpath : String, body : String | Nil = nil) : HTTP::Client::Response
Constructor Detail
Instance Method Detail
def get_raw(subpath : String, body : String | Nil = nil, &block : HTTP::Client::Response -> Nil) : Nil
#