ゴミ箱
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
http::header::ETag Class Reference

#include <typed_headers.hpp>

Inheritance diagram for http::header::ETag:
http::header::TypedHeader

Public Member Functions

 ETag (const std::string &tag, bool weak)
 
boost::beast::string_view name () const override
 
std::string value () const override
 

Static Public Member Functions

static std::optional< ETagparse (const std::string &raw_header)
 

Public Attributes

bool weak
 Weakness flag. More...
 
std::string tag
 ETag's value. More...
 

Detailed Description

ETag header, defined in RFC7232.

Constructor & Destructor Documentation

ETag::ETag ( const std::string &  tag,
bool  weak = false 
)

Creates ETag instance.

Parameters
tagTag's value.
weakWhether ETag is weak or not. Default is weak.

Member Function Documentation

boost::beast::string_view ETag::name ( ) const
overridevirtual
Returns
HTTP header name

Implements http::header::TypedHeader.

std::optional< ETag > ETag::parse ( const std::string &  raw_header)
static

Parses raw HTTP header ETag and constructs ETag.

Parameters
raw_headerHTTP header ETag string.
Returns
Instance of ETag.
std::string ETag::value ( ) const
overridevirtual
Returns
HTTP header value

Implements http::header::TypedHeader.

Member Data Documentation

std::string http::header::ETag::tag

ETag's value.

bool http::header::ETag::weak

Weakness flag.


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