Analyzer::Cpp::Httplib
Inherits Analyzer < FileHelper < Reference < Object
cpp-httplib (yhirose/cpp-httplib) — a header-only HTTP/HTTPS server & client
library. Routes are registered on a httplib::Server (or SSLServer)
instance: svr.Get("/path", handler), svr.Post, Put, Delete,
Patch, Options. The handler is either an inline lambda or a named
function. The library's Client type shares the same verb method names, so
we only treat calls on a server variable as routes.
Constants
:name path placeholder (cpp-httplib named params).
Request accessors mined from a handler body.
Regex metacharacters that mark a route pattern as a regex (kept verbatim).
receiver.Verb( — group 1 = receiver variable, group 2 = HTTP verb.
httplib::Server / Server / SSLServer declarations and reference params.
Precompiled union for the per-file verb-call evidence gate in analyze_file, so it costs a single PCRE2 match instead of up to six naive substring scans.
Class methods
Instance methods
Instance-side view of the same declaration. The per-file rescues live on
this base class, which has no way to name the analyzer that is running
inside them, so a skipped file could not be attributed to a tech.
Deriving it from analyzer_for keeps the name written exactly once.