MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / get_headers

Function get_headers

subprojects/llama.cpp/tools/server/server-http.cpp:334–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334static std::map<std::string, std::string> get_headers(const httplib::Request & req) {
335 std::map<std::string, std::string> headers;
336 for (const auto & [key, value] : req.headers) {
337 headers[key] = value;
338 }
339 return headers;
340}
341
342// using unique_ptr for request to allow safe capturing in lambdas
343using server_http_req_ptr = std::unique_ptr<server_http_req>;

Callers 2

getMethod · 0.85
postMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected