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

Method ServeRequest

library/cpp/neh/multiclient_ut.cpp:103–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 }
102
103 void ServeRequest(const IRequestRef& req) {
104 TData res(R_.data(), R_.data() + R_.size());
105 if (req->Data().StartsWith("delay ")) {
106 TStringBuf delay = req->Data();
107 delay.Skip(6);
108 TInstant respTime = TDuration::MilliSeconds(FromString<size_t>(delay.Before('\n'))).ToDeadLine();
109 D_.SendResponseAt(respTime, req, res);
110 } else {
111 req->SendReply(res);
112 }
113 }
114
115 private:
116 TString R_;

Callers

nothing calls this directly

Calls 10

MilliSecondsFunction · 0.85
ToDeadLineMethod · 0.80
BeforeMethod · 0.80
SendResponseAtMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45
StartsWithMethod · 0.45
DataMethod · 0.45
SkipMethod · 0.45
SendReplyMethod · 0.45

Tested by

no test coverage detected