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

Function ParseHttpRetCode

library/cpp/http/io/stream.cpp:966–970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

964}
965
966unsigned ParseHttpRetCode(const TStringBuf& ret) {
967 const TStringBuf code = StripString(StripString(ret.After(' ')).Before(' '));
968
969 return FromString<unsigned>(code.data(), code.size());
970}
971
972void SendMinimalHttpRequest(TSocket& s, const TStringBuf& host, const TStringBuf& request, const TStringBuf& agent, const TStringBuf& from) {
973 TSocketOutput so(s);

Callers 3

Y_UNIT_TESTFunction · 0.85
DoTestHttpOutputSizeFunction · 0.85
ProcessRecvMethod · 0.85

Calls 5

StripStringFunction · 0.85
BeforeMethod · 0.80
AfterMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected