userver: userver/http/parser/http_request_parse_args.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
http_request_parse_args.hpp File Reference

Strict URL arguments parsing. More...

#include <functional>
#include <string>
#include <unordered_map>
#include <vector>
#include <userver/utils/str_icase.hpp>
+ Include dependency graph for http_request_parse_args.hpp:

Go to the source code of this file.

Namespaces

namespace  http
 HTTP helpers.
 

Typedefs

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

Functions

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

Detailed Description

Strict URL arguments parsing.

Definition in file http_request_parse_args.hpp.

Typedef Documentation

◆ ArgsConsumer

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

Definition at line 25 of file http_request_parse_args.hpp.