userver: http::parser Namespace Reference
Loading...
Searching...
No Matches
http::parser Namespace Reference

Detailed Description

Strict HTTP request / URL argument parsing helpers.

Typedefs

using ArgsConsumer = std::function<void(std::string&& key, std::string&& value)>
 

Functions

std::string UrlDecode (std::string_view url)
 Strict URL decoder that throws std::runtime_error on bad input.
 
void ParseArgs (std::string_view args, std::unordered_map< std::string, std::vector< std::string >, utils::StrCaseHash > &result)
 
void ParseAndConsumeArgs (std::string_view args, ArgsConsumer handler)
 

Typedef Documentation

◆ ArgsConsumer

using http::parser::ArgsConsumer = std::function<void(std::string&& key, std::string&& value)>

Definition at line 27 of file http_request_parse_args.hpp.