MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / unknown_endpoint

Method unknown_endpoint

src/cli/MeasureManager.cpp:604–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604void MeasureManagerServer::unknown_endpoint(web::http::http_request& message) {
605 const std::string uri = toString(web::http::uri::decode(message.relative_uri().path()));
606 message.reply(web::http::status_codes::BadRequest, toWebJSON(fmt::format("Error, unknown path '{}'", uri)));
607 print_feedback(message, web::http::status_codes::NotFound);
608}
609
610void MeasureManagerServer::handle_get(web::http::http_request message) {
611 const std::string uri = toString(web::http::uri::decode(message.relative_uri().path()));

Callers

nothing calls this directly

Calls 3

toWebJSONFunction · 0.85
toStringFunction · 0.50
pathMethod · 0.45

Tested by

no test coverage detected