MCPcopy Create free account
hub / github.com/catboost/catboost / TParsedHttpRequest

Method TParsedHttpRequest

library/cpp/http/misc/parsed_request.cpp:16–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16TParsedHttpRequest::TParsedHttpRequest(const TStringBuf& str) {
17 TStringBuf tmp;
18
19 if (!StripLeft(str).TrySplit(' ', Method, tmp)) {
20 ythrow yexception() << "bad request(" << ToString(str).Quote() << ")";
21 }
22
23 if (!StripLeft(tmp).TrySplit(' ', Request, Proto)) {
24 ythrow yexception() << "bad request(" << ToString(str).Quote() << ")";
25 }
26
27 Proto = StripLeft(Proto);
28}
29
30TParsedHttpLocation::TParsedHttpLocation(const TStringBuf& req) {
31 req.Split('?', Path, Cgi);

Callers

nothing calls this directly

Calls 3

TrySplitMethod · 0.80
StripLeftFunction · 0.70
ToStringFunction · 0.50

Tested by

no test coverage detected