|
Mila
Deep Neural Network Library
|
The transport for a build with no HTTP client of its own: one that refuses, by name. More...
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 IHttpTransport > | Mila::Distribution::makeDefaultHttpTransport () |
| The transport a consumer gets when it does not supply its own. | |
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.
|
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.