aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/io
diff options
context:
space:
mode:
authorDmitry Potapov <potapov.d@gmail.com>2022-02-10 16:46:39 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:39 +0300
commit7aa4cf700385ff96999c5cc301171ff157974773 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/http/io
parent536101ea75c9ff5df10d01c2f460b1f6e12311b3 (diff)
downloadydb-7aa4cf700385ff96999c5cc301171ff157974773.tar.gz
Restoring authorship annotation for Dmitry Potapov <potapov.d@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/io')
-rw-r--r--library/cpp/http/io/compression.h2
-rw-r--r--library/cpp/http/io/stream.cpp16
-rw-r--r--library/cpp/http/io/stream.h2
3 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/http/io/compression.h b/library/cpp/http/io/compression.h
index 6e4d9c78aa..f16c4a18eb 100644
--- a/library/cpp/http/io/compression.h
+++ b/library/cpp/http/io/compression.h
@@ -35,7 +35,7 @@ public:
inline TArrayRef<const TStringBuf> GetBestCodecs() const {
return BestCodecs_;
}
-
+
private:
void Add(TStringBuf name, TDecoderConstructor d, TEncoderConstructor e);
diff --git a/library/cpp/http/io/stream.cpp b/library/cpp/http/io/stream.cpp
index 5eee4a5ea5..6689be684f 100644
--- a/library/cpp/http/io/stream.cpp
+++ b/library/cpp/http/io/stream.cpp
@@ -9,7 +9,7 @@
#include <util/stream/null.h>
#include <util/stream/tee.h>
-#include <util/system/compat.h>
+#include <util/system/compat.h>
#include <util/system/yassert.h>
#include <util/network/socket.h>
@@ -25,7 +25,7 @@
#define HEADERCMP(header, str) \
case sizeof(str) - 1: \
if (!stricmp((header).Name().data(), str))
-
+
namespace {
inline size_t SuggestBufferSize() {
return 8192;
@@ -192,10 +192,10 @@ public:
if (HasContentLength_) {
value = ContentLength_;
return true;
- }
+ }
return false;
}
-
+
inline bool ContentEncoded() const noexcept {
return ContentEncoded_;
}
@@ -381,7 +381,7 @@ private:
bool KeepAlive_;
TAcceptCodings Codings_;
-
+
bool HasContentLength_;
ui64 ContentLength_;
@@ -441,9 +441,9 @@ TString THttpInput::BestCompressionScheme() const {
}
bool THttpInput::GetContentLength(ui64& value) const noexcept {
- return Impl_->GetContentLength(value);
-}
-
+ return Impl_->GetContentLength(value);
+}
+
bool THttpInput::ContentEncoded() const noexcept {
return Impl_->ContentEncoded();
}
diff --git a/library/cpp/http/io/stream.h b/library/cpp/http/io/stream.h
index c8198bf664..78ca4fc814 100644
--- a/library/cpp/http/io/stream.h
+++ b/library/cpp/http/io/stream.h
@@ -76,7 +76,7 @@ public:
/// Если заголовки содержат Content-Length, возвращает true и
/// записывает значение из заголовка в value
bool GetContentLength(ui64& value) const noexcept;
-
+
/// Признак запакованности данных, - если выставлен, то Content-Length, при наличии в заголовках,
/// показывает объём запакованных данных, а из THttpInput мы будем вычитывать уже распакованные.
bool ContentEncoded() const noexcept;