RESTinio
Loading...
Searching...
No Matches
restinio::http_field_parsers::impl::token_producer_t Class Reference

A producer for token. More...

#include <basics.hpp>

Inheritance diagram for restinio::http_field_parsers::impl::token_producer_t:
restinio::easy_parser::impl::producer_tag< std::string > restinio::http_field_parsers::content_disposition_details::ext_token_producer_t restinio::http_field_parsers::content_disposition_details::regular_token_producer_t

Public Member Functions

expected_t< result_type, parse_error_ttry_parse (source_t &from) const

Static Private Member Functions

static std::optional< parse_error_ttry_parse_value (source_t &from, std::string &accumulator)
static constexpr bool is_token_char (const char ch) noexcept

Additional Inherited Members

Public Types inherited from restinio::easy_parser::impl::producer_tag< std::string >
using result_type
Static Public Attributes inherited from restinio::easy_parser::impl::producer_tag< std::string >
static constexpr entity_type_t entity_type

Detailed Description

A producer for token.

If a token is found in the input stream it produces std::string with the value of that token.

See: https://tools.ietf.org/html/rfc7230

Since
v.0.6.1

Definition at line 524 of file basics.hpp.

Member Function Documentation

◆ is_token_char()

constexpr bool restinio::http_field_parsers::impl::token_producer_t::is_token_char ( const char ch)
inlinestaticnodiscardconstexprprivatenoexcept

Definition at line 562 of file basics.hpp.

◆ try_parse()

expected_t< result_type, parse_error_t > restinio::http_field_parsers::impl::token_producer_t::try_parse ( source_t & from) const
inlinenodiscard

Definition at line 570 of file basics.hpp.

◆ try_parse_value()

std::optional< parse_error_t > restinio::http_field_parsers::impl::token_producer_t::try_parse_value ( source_t & from,
std::string & accumulator )
inlinestaticnodiscardprivate

Definition at line 528 of file basics.hpp.


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