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

Method Parse

library/cpp/http/server/http_ex.cpp:7–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <util/stream/null.h>
6
7bool THttpClientRequestExtension::Parse(char* req, TBaseServerRequestData& rd) {
8 rd.SetSocket(Socket());
9
10 if (!rd.Parse(req)) {
11 Output() << "HTTP/1.1 403 Forbidden\r\n"
12 "Content-Type: text/plain\r\n"
13 "Content-Length: 39\r\n"
14 "\r\n"
15 "The server cannot be used as a proxy.\r\n";
16
17 return false;
18 }
19
20 return true;
21}
22
23bool THttpClientRequestExtension::ProcessHeaders(TBaseServerRequestData& rd, TBlob& postData) {
24 for (const auto& header : ParsedHeaders) {

Callers

nothing calls this directly

Calls 2

SocketFunction · 0.85
SetSocketMethod · 0.45

Tested by

no test coverage detected