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

The HTTP transport this build has: libcurl. 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.

Variables

constexpr bool Mila::Distribution::kHttpTransportAvailable = true
 Whether this build can perform an HTTP request itself.

Detailed Description

The HTTP transport this build has: libcurl.

One of two candidate files for Distribution.HttpTransportBackend; CMake compiles this one when MILA_ENABLE_LIBCURL is ON. Selecting by source file rather than by preprocessor keeps both alternatives compiled code and keeps import Mila; free of an #ifdef.

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.

Variable Documentation

◆ kHttpTransportAvailable

bool Mila::Distribution::kHttpTransportAvailable = true
inlineconstexprexport

Whether this build can perform an HTTP request itself.

A consumer tests this to say so plainly rather than reporting an empty listing, which would claim a publisher has nothing when the truth is that nothing can be asked.