Crig::Providers::Anthropic::Client::WrappedTransport
Constructors
new(send_proc : Proc(HTTP::Request, Bytes, Crig::HttpClient::Result(Crig::HttpClient::Response(Crig::HttpClient::LazyBytes), Crig::HttpClient::Error)), send_multipart_proc : Proc(HTTP::Request, Crig::HttpClient::MultipartForm, Crig::HttpClient::Result(Crig::HttpClient::Response(Crig::HttpClient::LazyBytes), Crig::HttpClient::Error)), send_streaming_proc : Proc(HTTP::Request, Bytes, Crig::HttpClient::Result(Crig::HttpClient::StreamingResponse, Crig::HttpClient::Error)))
SourceClass methods
wrap(http_client : H) forall H
SourceInstance methods
send(req : HTTP::Request, body : Bytes = Bytes.empty) : Crig::HttpClient::Result(Crig::HttpClient::Response(Crig::HttpClient::LazyBytes), Crig::HttpClient::Error)
Sourcesend_multipart(req : HTTP::Request, form : Crig::HttpClient::MultipartForm) : Crig::HttpClient::Result(Crig::HttpClient::Response(Crig::HttpClient::LazyBytes), Crig::HttpClient::Error)
Sourcesend_streaming(req : HTTP::Request, body : Bytes = Bytes.empty) : Crig::HttpClient::Result(Crig::HttpClient::StreamingResponse, Crig::HttpClient::Error)
Source