Mila
Deep Neural Network Library
Loading...
Searching...
No Matches
Mila::Distribution::HttpResult Struct Referenceexport

Public Member Functions

bool ok () const noexcept

Public Attributes

uint64_t bytes_received { 0 }
uint64_t content_length { 0 }
 Server-reported total for this transfer, excluding any resumed prefix. Zero if absent.
std::string final_url
 The URL actually being fetched when the result was produced, which after a redirect is not the one requested.
long http_code { 0 }
std::string message
 Populated on failure. Never contains the authorization token.
HttpStatus status { HttpStatus::TransportError }

Member Data Documentation

◆ final_url

std::string Mila::Distribution::HttpResult::final_url

The URL actually being fetched when the result was produced, which after a redirect is not the one requested.

Reporting the requested URL instead hides which hop failed.


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