Boost C++ Libraries

PrevUpHomeNext

Function template find_target_template

boost::taar::handler::find_target_template — Read the raw template string captured by the first target_constraint.

Synopsis

// In header: <boost/taar/handler/path_arg_check.hpp>


template<typename Operand> auto find_target_template(Operand const & op);

Description

Returns:

The unparsed template string on success, or std::nullopt when the matcher's metadata contains no target_constraint leaf (for example, a matcher that constrains only method or headers). Multi-target matchers (target == "/a" || target == "/b") return the first occurrence; the cross-check only validates against that one.


PrevUpHomeNext