Mila
Deep Neural Network Library
Loading...
Searching...
No Matches
HttpTransportBackend.Null.ixx File Reference

The transport for a build with no HTTP client of its own: one that refuses, by name. More...

#include <memory>
#include <string>
import Distribution.HttpTransport;

Classes

class  Mila::Distribution::NullHttpTransport
 The transport of a build compiled without one. More...

Namespaces

namespace  Mila
 Mila main API namespace.

Functions

std::shared_ptr< const IHttpTransportMila::Distribution::makeDefaultHttpTransport ()
 The transport a consumer gets when it does not supply its own.

Detailed Description

The transport for a build with no HTTP client of its own: one that refuses, by name.

One of two candidate files for Distribution.HttpTransportBackend; CMake compiles this one when MILA_ENABLE_LIBCURL is OFF. Only moving bytes is gone – the store, packaging, install, pull, and every HuggingFace URL, token and status rule are still compiled, so a caller that supplies its own transport loses nothing at all. That is how the Python wheel works.

Function Documentation

◆ makeDefaultHttpTransport()

std::shared_ptr< const IHttpTransport > Mila::Distribution::makeDefaultHttpTransport ( )
export

The transport a consumer gets when it does not supply its own.

Never null, so a caller need not check; what varies between builds is whether the object it returns can reach a network.