RESTINIO_NODISCARD constexpr bool is_bchar(char ch)
Enumeration of parts should be ignored. All remaining parts of multipart body will be skipped and the...
A description of parsed content of one part of a multipart body.
RESTINIO_NODISCARD expected_t< string_view_t, easy_parser::parse_error_t > try_parse(easy_parser::impl::source_t &from) const noexcept
RESTINIO_NODISCARD expected_t< std::size_t, enumeration_error_t > enumerate_parts_of_request_body(const std::vector< string_view_t > &parts, Handler &&handler)
A function that parses every part of a multipart body and calls a user-provided handler for every par...
Value of 'boundary' parameter is invalid (for example it contains some illegal characters).
Unable to parse Content-Type field value.
Content-Type field is not found. If Content-Type is absent there is no way to detect 'boundary' param...
enumeration_error_t
The result of an attempt to enumerate parts of a multipart body.
No parts of a multipart body actually found.
Enumeration of parts was aborted by user-provided handler. This code is returned when user-provided h...
Content-Type field value parsed but doesn't contain an appropriate value. For example there can be me...
http_header_fields_t fields
HTTP-fields local for that part.
RESTINIO_NODISCARD expected_t< std::string, easy_parser::parse_error_t > try_parse(easy_parser::impl::source_t &from) const
Some unexpected error encountered during the enumeration.
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 ...