aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http
diff options
context:
space:
mode:
authoraosipenko <aosipenko@yandex-team.ru>2022-02-10 16:48:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:08 +0300
commit69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/http
parent948fd24d47d4b3b7815aaef1686aea00ef3f4288 (diff)
downloadydb-69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f.tar.gz
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http')
-rw-r--r--library/cpp/http/fetch/http_digest.h2
-rw-r--r--library/cpp/http/fetch/httpfetcher.h12
-rw-r--r--library/cpp/http/fetch/httpfsm.rl68
-rw-r--r--library/cpp/http/io/stream.cpp8
-rw-r--r--library/cpp/http/misc/httpdate.h2
-rw-r--r--library/cpp/http/misc/httpreqdata.h6
-rw-r--r--library/cpp/http/server/http.cpp12
7 files changed, 25 insertions, 25 deletions
diff --git a/library/cpp/http/fetch/http_digest.h b/library/cpp/http/fetch/http_digest.h
index 62cda1a29f..3b1872d70b 100644
--- a/library/cpp/http/fetch/http_digest.h
+++ b/library/cpp/http/fetch/http_digest.h
@@ -43,5 +43,5 @@ public:
return (!User_);
}
- const char* getHeaderInstruction() const;
+ const char* getHeaderInstruction() const;
};
diff --git a/library/cpp/http/fetch/httpfetcher.h b/library/cpp/http/fetch/httpfetcher.h
index fa7e7ab1c5..7fc251afd2 100644
--- a/library/cpp/http/fetch/httpfetcher.h
+++ b/library/cpp/http/fetch/httpfetcher.h
@@ -36,16 +36,16 @@ public:
static int TerminateNow;
THttpFetcher()
- : THttpParser<TCheck>()
- , TAlloc()
- , TWriter()
- , TAgent()
+ : THttpParser<TCheck>()
+ , TAlloc()
+ , TWriter()
+ , TAgent()
{
}
-
+
virtual ~THttpFetcher() {
}
-
+
int Fetch(THttpHeader* header, const char* path, const char* const* headers, int persistent, bool head_request = false) {
int ret = 0;
int fetcherr = 0;
diff --git a/library/cpp/http/fetch/httpfsm.rl6 b/library/cpp/http/fetch/httpfsm.rl6
index 35a6f972bb..eab0328b18 100644
--- a/library/cpp/http/fetch/httpfsm.rl6
+++ b/library/cpp/http/fetch/httpfsm.rl6
@@ -11,10 +11,10 @@
#include <library/cpp/http/fetch/httpheader.h>
#include <library/cpp/http/fetch/httpfsm.h>
-#ifdef _MSC_VER
-#pragma warning(disable: 4702) // unreachable code
-#endif
-
+#ifdef _MSC_VER
+#pragma warning(disable: 4702) // unreachable code
+#endif
+
#define c(i) I = i;
#define m(i) I = std::max(I, (long)i);
diff --git a/library/cpp/http/io/stream.cpp b/library/cpp/http/io/stream.cpp
index 8a1319bc10..6689be684f 100644
--- a/library/cpp/http/io/stream.cpp
+++ b/library/cpp/http/io/stream.cpp
@@ -284,7 +284,7 @@ private:
inline void BuildInputChain() {
TParsedHeaders p;
-
+
size_t pos = FirstLine_.rfind(' ');
// In HTTP/1.1 Keep-Alive is turned on by default
if (pos != TString::npos && strcmp(FirstLine_.c_str() + pos + 1, "HTTP/1.1") == 0) {
@@ -321,7 +321,7 @@ private:
p.KeepAlive = true;
} else if (stricmp(header.Value().data(), "close") == 0) {
p.KeepAlive = false;
- }
+ }
}
[[fallthrough]];
HEADERCMP(header, "expect") {
@@ -536,7 +536,7 @@ public:
if (*c == '\n') {
Line_.append(b, c);
- if (!Line_.empty() && Line_.back() == '\r') {
+ if (!Line_.empty() && Line_.back() == '\r') {
Line_.pop_back();
}
@@ -906,7 +906,7 @@ void THttpOutput::DoFinish() {
}
const THttpHeaders& THttpOutput::SentHeaders() const noexcept {
- return Impl_->SentHeaders();
+ return Impl_->SentHeaders();
}
void THttpOutput::EnableCompression(bool enable) {
diff --git a/library/cpp/http/misc/httpdate.h b/library/cpp/http/misc/httpdate.h
index 16907280d2..04876f38fe 100644
--- a/library/cpp/http/misc/httpdate.h
+++ b/library/cpp/http/misc/httpdate.h
@@ -7,7 +7,7 @@
#define BAD_DATE ((time_t)-1)
-inline time_t parse_http_date(const TStringBuf& datestring) {
+inline time_t parse_http_date(const TStringBuf& datestring) {
try {
return TInstant::ParseHttpDeprecated(datestring).TimeT();
} catch (const TDateTimeParseException&) {
diff --git a/library/cpp/http/misc/httpreqdata.h b/library/cpp/http/misc/httpreqdata.h
index 08f10a2717..16e59c4d78 100644
--- a/library/cpp/http/misc/httpreqdata.h
+++ b/library/cpp/http/misc/httpreqdata.h
@@ -28,7 +28,7 @@ public:
}
const TString& ServerName() const {
- return Host;
+ return Host;
}
NAddr::IRemoteAddrPtr ServerAddress() const {
@@ -36,7 +36,7 @@ public:
}
const TString& ServerPort() const {
- return Port;
+ return Port;
}
const char* ScriptName() const {
@@ -96,7 +96,7 @@ private:
size_t SearchLength; // length of Search
TStringBuf OrigSearch;
THttpHeadersContainer HeadersIn_;
- mutable char AddrData[INET6_ADDRSTRLEN];
+ mutable char AddrData[INET6_ADDRSTRLEN];
SOCKET Socket;
ui64 BeginTime;
mutable TString CurPage;
diff --git a/library/cpp/http/server/http.cpp b/library/cpp/http/server/http.cpp
index d63d86e26f..128583bdd7 100644
--- a/library/cpp/http/server/http.cpp
+++ b/library/cpp/http/server/http.cpp
@@ -172,11 +172,11 @@ public:
ErrorCode = WSAGetLastError();
}
- int GetErrorCode() const {
+ int GetErrorCode() const {
return ErrorCode;
}
- const char* GetError() const {
+ const char* GetError() const {
return LastSystemErrorText(ErrorCode);
}
@@ -213,7 +213,7 @@ public:
void Wait() {
Cb_->OnWait();
TGuard<TMutex> g(StopMutex);
- if (ListenThread) {
+ if (ListenThread) {
ListenThread->Join();
ListenThread.Reset(nullptr);
}
@@ -223,7 +223,7 @@ public:
Shutdown();
TGuard<TMutex> g(StopMutex);
- if (ListenThread) {
+ if (ListenThread) {
ListenThread->Join();
ListenThread.Reset(nullptr);
}
@@ -560,7 +560,7 @@ TClientConnection::TClientConnection(const TSocket& s, THttpServer::TImpl* serv,
const TDuration& clientTimeout = HttpServ_->Options().ClientTimeout;
if (clientTimeout != TDuration::Zero()) {
- SetSocketTimeout(Socket_, (long)clientTimeout.Seconds(), clientTimeout.MilliSecondsOfSecond());
+ SetSocketTimeout(Socket_, (long)clientTimeout.Seconds(), clientTimeout.MilliSecondsOfSecond());
}
HttpServ_->IncreaseConnections();
@@ -738,7 +738,7 @@ void TClientRequest::ProcessFailRequest(int failstate) {
// Skipping spaces before url...
size_t start = 3;
- while (str[start] == ' ') {
+ while (str[start] == ' ') {
++start;
}