MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / string_to_verb

Function string_to_verb

net/http/message.cpp:280–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280Verb string_to_verb(std::string_view v) {
281 for (auto i = Verb::UNKNOWN; i <= Verb::UNLINK; i = Verb((int)i + 1)) {
282 if (verbstr[i] == v) return i;
283 }
284 return Verb::UNKNOWN;
285}
286
287inline size_t full_url_size(const URL& u) {
288 return u.target().size() + u.host_port().size() +

Callers 1

parse_request_lineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected