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

Method AppendQueryString

library/cpp/http/misc/httpreqdata.cpp:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void TBaseServerRequestData::AppendQueryString(TStringBuf str) {
29 if (Y_UNLIKELY(!Query_.empty())) {
30 TStringBuf separator = !Query_.EndsWith('&') && !str.StartsWith('&') ? "&"sv : ""sv;
31 ModifiedQueryString_ = TString::Join(Query_, separator, str);
32 } else {
33 ModifiedQueryString_ = str;
34 }
35 Query_ = ModifiedQueryString_;
36}
37
38void TBaseServerRequestData::SetRemoteAddr(TStringBuf addr) {
39 Addr_.ConstructInPlace(addr.substr(0, INET6_ADDRSTRLEN - 1));

Callers 1

Y_UNIT_TESTFunction · 0.80

Calls 4

JoinFunction · 0.50
emptyMethod · 0.45
EndsWithMethod · 0.45
StartsWithMethod · 0.45

Tested by

no test coverage detected