MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mbgl::Response Class Reference

#include <response.hpp>

Classes

class  Error
 

Public Member Functions

 Response ()=default
 
 Response (const Response &)
 
Responseoperator= (const Response &)
 
bool isFresh () const
 
bool isUsable () const
 

Public Attributes

std::unique_ptr< const Errorerror
 
bool noContent = false
 
bool notModified = false
 
bool mustRevalidate = false
 
std::shared_ptr< const std::string > data
 
std::optional< Timestampmodified
 
std::optional< Timestampexpires
 
std::optional< std::string > etag
 

Detailed Description

Definition at line 11 of file response.hpp.

Constructor & Destructor Documentation

◆ Response() [1/2]

mbgl::Response::Response ( )
default

◆ Response() [2/2]

mbgl::Response::Response ( const Response )

Member Function Documentation

◆ isFresh()

bool mbgl::Response::isFresh ( ) const
inline

Definition at line 40 of file response.hpp.

◆ isUsable()

bool mbgl::Response::isUsable ( ) const
inline

Definition at line 46 of file response.hpp.

◆ operator=()

Response& mbgl::Response::operator= ( const Response )

Member Data Documentation

◆ data

std::shared_ptr<const std::string> mbgl::Response::data

Definition at line 34 of file response.hpp.

◆ error

std::unique_ptr<const Error> mbgl::Response::error

Definition at line 20 of file response.hpp.

◆ etag

std::optional<std::string> mbgl::Response::etag

Definition at line 38 of file response.hpp.

◆ expires

std::optional<Timestamp> mbgl::Response::expires

Definition at line 37 of file response.hpp.

◆ modified

std::optional<Timestamp> mbgl::Response::modified

Definition at line 36 of file response.hpp.

◆ mustRevalidate

bool mbgl::Response::mustRevalidate = false

Definition at line 31 of file response.hpp.

◆ noContent

bool mbgl::Response::noContent = false

Definition at line 24 of file response.hpp.

◆ notModified

bool mbgl::Response::notModified = false

Definition at line 27 of file response.hpp.


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