![]() |
boost::taar::handler::target_arg — Argument provider that returns the request target as a std::string.
// In header: <boost/taar/handler/rest_arg.hpp> struct target_arg { // public member functions target_arg(); std::string name() const; taar::result< std::string > operator()(boost::beast::http::request_header<> const &, matcher::context const &) const; };
Useful when you need to implement custom parsing logic that path_arg and query_arg cannot express. The target contains the path and query string (if any), but neither the scheme nor the authority.
target_arg public member functionstarget_arg();
std::string name() const;
taar::result< std::string > operator()(boost::beast::http::request_header<> const & request, matcher::context const &) const;