Telegram::HTTPClientWrapper
Enhanced HTTP client wrapper with production-ready features
Constructors
new(config : HTTPClientConfig = HTTPClientConfig.new)
SourceInitialize with custom HTTP client
Instance methods
Execute a DELETE request with automatic retry logic
Execute a GET request with automatic retry logic
post(url : String, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil) : HTTP::Client::Response
Execute a POST request with automatic retry logic
post_multipart(url : String, multipart_data : Tuple(String, IO), headers : HTTP::Headers | Nil = nil) : HTTP::Client::Response
Execute a multipart POST request
put(url : String, headers : HTTP::Headers | Nil = nil, body : String | Nil = nil) : HTTP::Client::Response
Execute a PUT request with automatic retry logic