Android-cuttlefish cvd tool
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
cuttlefish::ZipOverRanges Class Reference

#include <zip_over_ranges.h>

Public Member Functions

HttpResponse< std::string > operator() (const HttpRequest &request)
 
uint64_t Size () const
 
bool RangeRequestMade () const
 
int HeadRequests () const
 

Static Public Member Functions

static Result< ZipOverRanges > Create (const std::map< std::string, std::string > &contents, bool serve_ranges=true, bool reject_head=false)
 

Private Member Functions

 ZipOverRanges (std::string data, bool serve_ranges, bool reject_head)
 

Private Attributes

std::string data_
 
bool serve_ranges_
 
bool reject_head_
 
std::shared_ptr< bool > ranged_
 
std::shared_ptr< int > heads_
 

Constructor & Destructor Documentation

◆ ZipOverRanges()

cuttlefish::ZipOverRanges::ZipOverRanges ( std::string  data,
bool  serve_ranges,
bool  reject_head 
)
private

Member Function Documentation

◆ Create()

Result< ZipOverRanges > cuttlefish::ZipOverRanges::Create ( const std::map< std::string, std::string > &  contents,
bool  serve_ranges = true,
bool  reject_head = false 
)
static

◆ HeadRequests()

int cuttlefish::ZipOverRanges::HeadRequests ( ) const
inline

◆ operator()()

HttpResponse< std::string > cuttlefish::ZipOverRanges::operator() ( const HttpRequest &  request)

◆ RangeRequestMade()

bool cuttlefish::ZipOverRanges::RangeRequestMade ( ) const
inline

◆ Size()

uint64_t cuttlefish::ZipOverRanges::Size ( ) const
inline

Member Data Documentation

◆ data_

std::string cuttlefish::ZipOverRanges::data_
private

◆ heads_

std::shared_ptr<int> cuttlefish::ZipOverRanges::heads_
private

◆ ranged_

std::shared_ptr<bool> cuttlefish::ZipOverRanges::ranged_
private

◆ reject_head_

bool cuttlefish::ZipOverRanges::reject_head_
private

◆ serve_ranges_

bool cuttlefish::ZipOverRanges::serve_ranges_
private

The documentation for this class was generated from the following files: