CCF
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ccf::http::Matcher Class Reference

#include <http_etag.h>

Public Member Functions

 Matcher (const std::string &match_header)
 
bool matches (const std::string &etag) const
 Check if a given ETag matches the If-Match/If-None-Match header.
 
bool is_any () const
 Check if the header will match any ETag (*)
 

Detailed Description

Utility class to resolve If-Match and If-None-Match as described in https://www.rfc-editor.org/rfc/rfc9110#field.if-match

Constructor & Destructor Documentation

◆ Matcher()

ccf::http::Matcher::Matcher ( const std::string &  match_header)
inline

Construct a Matcher from a match header

Note: Weak tags are not supported.

Member Function Documentation

◆ is_any()

bool ccf::http::Matcher::is_any ( ) const
inline

Check if the header will match any ETag (*)

◆ matches()

bool ccf::http::Matcher::matches ( const std::string &  etag) const
inline

Check if a given ETag matches the If-Match/If-None-Match header.


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