RESTinio
|
A template for a producer that handles possibly empty list of comma-separated values. More...
#include <basics.hpp>
Public Member Functions | |
maybe_empty_comma_separated_list_producer_t (Element_Producer &&element) | |
RESTINIO_NODISCARD expected_t< result_type, parse_error_t > | try_parse (source_t &from) |
Private Attributes | |
Element_Producer | m_element |
Additional Inherited Members | |
![]() | |
using | result_type = Container |
![]() | |
static constexpr entity_type_t | entity_type |
A template for a producer that handles possibly empty list of comma-separated values.
That producer handles the following rule:
#element => [ ( "," / element ) *( OWS "," [ OWS element ] ) ]
See: https://tools.ietf.org/html/rfc7230 (section "7. ABNF List Extension: #rule")
Container | the type of container to be produced. |
Element_Producer | the type of the producer of a single item. |
Definition at line 1380 of file basics.hpp.
|
inline |
Definition at line 1391 of file basics.hpp.
inline |
Definition at line 1398 of file basics.hpp.
|
private |
Definition at line 1386 of file basics.hpp.