14 #include <restinio/helpers/http_field_parsers/basics.hpp> 82 consume( std::string & to, pct_encoded_result_type_t && from )
const 84 to.append( &from[0], from.size() );
RESTINIO_NODISCARD auto pct_encoded_symbols_p()
A producer that extract a sequence of symbols represented a percent-encoded character.
RESTINIO_NODISCARD auto try_parse_field(const generic_request_t< Extra_Data > &req, http_field_t field_id, string_view_t default_value=string_view_t{})
A helper function for extraction and parsing a value of HTTP-field.
A special consumer that inserts an extracted sequence of symbols into the result string.
void consume(std::string &to, pct_encoded_result_type_t &&from) const
std::enable_if< std::is_same< Parameter_Container, query_string_params_t >::value||std::is_same< Parameter_Container, router::route_params_t >::value, optional_t< Value_Type > >::type opt_value(const Parameter_Container ¶ms, string_view_t key)
Gets the value of a parameter specified by key wrapped in optional_t<Value_Type> if parameter exists ...