Mila
Deep Neural Network Library
Loading...
Searching...
No Matches
Mila::Distribution::CurlHttpTransport Class Referenceexport

libcurl as an IHttpTransport. More...

Inheritance diagram for Mila::Distribution::CurlHttpTransport:
Mila::Distribution::IHttpTransport

Public Member Functions

HttpResponse fetch (const HttpFetch &request, const SinkCallback &sink, const HeadersCallback &on_headers) const override
std::string name () const override
 Stable identifier, for messages. e.g. "libcurl".

Detailed Description

libcurl as an IHttpTransport.

CURLOPT_FOLLOWLOCATION stays off. That was once about protecting the token; now it is simply the contract – the client follows hops, because only the client knows which host the request started on.

Member Function Documentation

◆ fetch()

HttpResponse Mila::Distribution::CurlHttpTransport::fetch ( const HttpFetch & request,
const SinkCallback & sink,
const HeadersCallback & on_headers ) const
inlineoverridevirtual

◆ name()

std::string Mila::Distribution::CurlHttpTransport::name ( ) const
inlineoverridevirtual

Stable identifier, for messages. e.g. "libcurl".

Implements Mila::Distribution::IHttpTransport.


The documentation for this class was generated from the following file: