RESTinio
Classes | Public Types | Static Public Member Functions | Public Attributes | List of all members
restinio::http_field_parsers::accept_encoding_value_t Struct Reference

Tools for working with the value of Accept-Encoding HTTP-field. More...

#include <accept-encoding.hpp>

Classes

struct  item_t
 

Public Types

using item_container_t = std::vector< item_t >
 

Static Public Member Functions

static RESTINIO_NODISCARD auto make_parser ()
 A factory function for a parser of Accept-Encoding value. More...
 
static RESTINIO_NODISCARD expected_t< accept_encoding_value_t, restinio::easy_parser::parse_error_ttry_parse (string_view_t what)
 An attempt to parse Accept-Encoding HTTP-field. More...
 

Public Attributes

item_container_t codings
 

Detailed Description

Tools for working with the value of Accept-Encoding HTTP-field.

This struct represents parsed value of HTTP-field Accept-Encoding (see https://tools.ietf.org/html/rfc7231#section-5.3.4):

Accept-Encoding  = #( codings [ weight ] )
codings          = content-coding / "identity" / "*"
content-coding   = token
Note
Values of condings are converted to lower case during the parsing.
Since
v.0.6.2

Definition at line 41 of file accept-encoding.hpp.

Member Typedef Documentation

◆ item_container_t

Definition at line 49 of file accept-encoding.hpp.

Member Function Documentation

◆ make_parser()

static RESTINIO_NODISCARD auto restinio::http_field_parsers::accept_encoding_value_t::make_parser ( )
inlinestatic

A factory function for a parser of Accept-Encoding value.

Since
v.0.6.2

Definition at line 60 of file accept-encoding.hpp.

◆ try_parse()

static RESTINIO_NODISCARD expected_t< accept_encoding_value_t, restinio::easy_parser::parse_error_t > restinio::http_field_parsers::accept_encoding_value_t::try_parse ( string_view_t  what)
inlinestatic

An attempt to parse Accept-Encoding HTTP-field.

Since
v.0.6.2

Definition at line 79 of file accept-encoding.hpp.

Member Data Documentation

◆ codings

item_container_t restinio::http_field_parsers::accept_encoding_value_t::codings

Definition at line 51 of file accept-encoding.hpp.


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