MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/xstudio / expect_content

Function expect_content

extern/include/cpp-httplib/httplib.h:4287–4294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4285}
4286
4287inline bool expect_content(const Request &req) {
4288 if (req.method == "POST" || req.method == "PUT" || req.method == "PATCH" ||
4289 req.method == "PRI" || req.method == "DELETE") {
4290 return true;
4291 }
4292 // TODO: check if Content-Length is set
4293 return false;
4294}
4295
4296inline bool has_crlf(const std::string &s) {
4297 auto p = s.c_str();

Callers 1

routingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected