MCPcopy Create free account
hub / github.com/PABannier/bark.cpp / dispatch_request_for_content_reader

Method dispatch_request_for_content_reader

examples/server/httplib.h:6437–6450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6435}
6436
6437inline bool Server::dispatch_request_for_content_reader(
6438 Request &req, Response &res, ContentReader content_reader,
6439 const HandlersForContentReader &handlers) {
6440 for (const auto &x : handlers) {
6441 const auto &matcher = x.first;
6442 const auto &handler = x.second;
6443
6444 if (matcher->match(req)) {
6445 handler(req, res, content_reader);
6446 return true;
6447 }
6448 }
6449 return false;
6450}
6451
6452inline bool
6453Server::process_request(Stream &strm, bool close_connection,

Callers

nothing calls this directly

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected