module Toshi::Api
Defined in:
toshi/api.crtoshi/api/class_methods.cr
toshi/options.cr
Macro Summary
- define_api(host, scheme = "https", port = nil, prefix = nil, tls_verify_mode = OpenSSL::SSL::VerifyMode::PEER, default_headers = HTTP::Headers {"Content-Type" => "application/json", "Accept" => "application/json"}, pool_capacity = 200, initial_pool_size = 20, pool_timeout = 0.1, sleep_time = 0.0)
- define_api_method(method, path, resp_klass = nil, name = nil)
Macro Detail
macro define_api(host, scheme = "https", port = nil, prefix = nil, tls_verify_mode = OpenSSL::SSL::VerifyMode::PEER, default_headers = HTTP::Headers {"Content-Type" => "application/json", "Accept" => "application/json"}, pool_capacity = 200, initial_pool_size = 20, pool_timeout = 0.1, sleep_time = 0.0)
#