RESTinio
Loading...
Searching...
No Matches
restinio::http_field_parsers::cache_control_value_t Struct Reference

Tools for working with the value of Cache-Control HTTP-field. More...

#include <cache-control.hpp>

Public Types

using directive_t = parameter_with_optional_value_t
using directive_container_t = parameter_with_optional_value_container_t

Static Public Member Functions

static auto make_parser ()
 A factory function for a parser of Cache-Control value.
static expected_t< cache_control_value_t, restinio::easy_parser::parse_error_ttry_parse (string_view_t what)
 An attempt to parse Cache-Control HTTP-field.

Public Attributes

directive_container_t directives

Detailed Description

Tools for working with the value of Cache-Control HTTP-field.

This struct represents parsed value of HTTP-field Cache-Control (see https://tools.ietf.org/html/rfc7234#section-5.2):

     Cache-Control   = 1#cache-directive

     cache-directive = token [ "=" ( token / quoted-string ) ]
Note
Parameter names are converted to lower case during the parsing. Parameter values are left as they are.
Since
v.0.6.1

Definition at line 42 of file cache-control.hpp.

Member Typedef Documentation

◆ directive_container_t

◆ directive_t

Member Function Documentation

◆ make_parser()

auto restinio::http_field_parsers::cache_control_value_t::make_parser ( )
inlinestaticnodiscard

A factory function for a parser of Cache-Control value.

Since
v.0.6.1

Definition at line 57 of file cache-control.hpp.

◆ try_parse()

expected_t< cache_control_value_t, restinio::easy_parser::parse_error_t > restinio::http_field_parsers::cache_control_value_t::try_parse ( string_view_t what)
inlinestaticnodiscard

An attempt to parse Cache-Control HTTP-field.

Since
v.0.6.1

Definition at line 82 of file cache-control.hpp.

Member Data Documentation

◆ directives

directive_container_t restinio::http_field_parsers::cache_control_value_t::directives

Definition at line 48 of file cache-control.hpp.


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