Android-cuttlefish cvd tool
Functions | Variables
cuttlefish::anonymous_namespace{http_probe.cc} Namespace Reference

Functions

Result< HttpResponse< void > > Probe (HttpClient &http_client, HttpMethod method, const std::string &url, std::vector< std::string > headers)
 
bool ServesRanges (const HttpResponse< void > &response)
 
std::optional< uint64_t > ProbedSize (const HttpResponse< void > &response)
 

Variables

constexpr long kPartialContent = 206
 
constexpr long kForbidden = 403
 
constexpr long kMethodNotAllowed = 405
 

Function Documentation

◆ Probe()

Result< HttpResponse< void > > cuttlefish::anonymous_namespace{http_probe.cc}::Probe ( HttpClient &  http_client,
HttpMethod  method,
const std::string &  url,
std::vector< std::string >  headers 
)

◆ ProbedSize()

std::optional< uint64_t > cuttlefish::anonymous_namespace{http_probe.cc}::ProbedSize ( const HttpResponse< void > &  response)

◆ ServesRanges()

bool cuttlefish::anonymous_namespace{http_probe.cc}::ServesRanges ( const HttpResponse< void > &  response)

Variable Documentation

◆ kForbidden

constexpr long cuttlefish::anonymous_namespace{http_probe.cc}::kForbidden = 403
constexpr

◆ kMethodNotAllowed

constexpr long cuttlefish::anonymous_namespace{http_probe.cc}::kMethodNotAllowed = 405
constexpr

◆ kPartialContent

constexpr long cuttlefish::anonymous_namespace{http_probe.cc}::kPartialContent = 206
constexpr