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

Method WriteHttpCode

library/cpp/neh/https.cpp:1380–1387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1378 }
1379
1380 static void WriteHttpCode(IOutputStream& os, TMaybe<IRequest::TResponseError> error) {
1381 if (!error.Defined()) {
1382 os << HttpCodeStrEx(HttpCodes::HTTP_OK);
1383 return;
1384 }
1385
1386 os << HttpCodeStrEx(GetHttpCode(*error));
1387 }
1388
1389 public:
1390 inline TWrite(TData& data, const TString& compressionScheme, TIntrusivePtr<TSslServerIOStream> io, TServer* server, const TString& headers, int httpCode)

Callers

nothing calls this directly

Calls 3

HttpCodeStrExFunction · 0.85
GetHttpCodeFunction · 0.85
DefinedMethod · 0.45

Tested by

no test coverage detected