MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / HeaderOrEmpty

Function HeaderOrEmpty

src/server/request_handler.cpp:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace
30{
31inline std::string HeaderOrEmpty(const Request &req, bhttp::field f)
32{
33 const auto it = req.find(f);
34 if (it == req.end())
35 return {};
36 return std::string(it->value());
37}
38
39void SendResponse(ServiceHandler::ResultT &result,
40 Response &current_reply,

Callers 1

HandleRequestMethod · 0.85

Calls 1

endMethod · 0.45

Tested by

no test coverage detected