MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / dispatch_request_for_content_reader

Method dispatch_request_for_content_reader

external/httplib.h:7001–7014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6999}
7000
7001inline bool Server::dispatch_request_for_content_reader(
7002 Request &req, Response &res, ContentReader content_reader,
7003 const HandlersForContentReader &handlers) const {
7004 for (const auto &x : handlers) {
7005 const auto &matcher = x.first;
7006 const auto &handler = x.second;
7007
7008 if (matcher->match(req)) {
7009 handler(req, res, content_reader);
7010 return true;
7011 }
7012 }
7013 return false;
7014}
7015
7016inline bool
7017Server::process_request(Stream &strm, const std::string &remote_addr,

Callers

nothing calls this directly

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected