Boost C++ Libraries

PrevUpHomeNext

Struct route_shape

boost::taar::matcher::route_shape — Compile-time summary of a matcher AST's shape.

Synopsis

// In header: <boost/taar/matcher/route_shape.hpp>


struct route_shape {

  // public data members
  bool valid;  // No negation, no !=, no opaque callables. 
  bool methods_only;  // The subtree consists of method == leaves only. 
  int targets;  // Number of target == leaves. 
  int methods;  // Number of method == leaves. 
};

Description

Used to decide whether a route can be described as "these methods on this path": by the OpenAPI generator, and by the session to answer 405 Method Not Allowed and to serve HEAD from a GET route.


PrevUpHomeNext