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

The transport of a build compiled without one. More...

Inheritance diagram for Mila::Distribution::NullHttpTransport:
Mila::Distribution::IHttpTransport

Public Member Functions

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

Detailed Description

The transport of a build compiled without one.

Fails with the same fact every time rather than a network error, because there is no network call to have failed. Supplying a transport is the supported answer, not a workaround – this build knows everything about HuggingFace except how to reach it.

Member Function Documentation

◆ fetch()

HttpResponse Mila::Distribution::NullHttpTransport::fetch ( const HttpFetch & ,
const SinkCallback & ,
const HeadersCallback &  ) const
inlineoverridevirtual

◆ name()

std::string Mila::Distribution::NullHttpTransport::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: