diff options
author | Dmitry Potapov <potapov.d@gmail.com> | 2022-02-10 16:46:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:39 +0300 |
commit | 536101ea75c9ff5df10d01c2f460b1f6e12311b3 (patch) | |
tree | 115291277ad61b2cdcf5044d210fb103b5e1647e /library/cpp/http/io | |
parent | 5036b5f2122001f9aef8a0e4cd85440d73ea6b9f (diff) | |
download | ydb-536101ea75c9ff5df10d01c2f460b1f6e12311b3.tar.gz |
Restoring authorship annotation for Dmitry Potapov <potapov.d@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/io')
-rw-r--r-- | library/cpp/http/io/compression.h | 2 | ||||
-rw-r--r-- | library/cpp/http/io/stream.cpp | 16 | ||||
-rw-r--r-- | library/cpp/http/io/stream.h | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/http/io/compression.h b/library/cpp/http/io/compression.h index f16c4a18eb..6e4d9c78aa 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 6689be684f..5eee4a5ea5 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 78ca4fc814..c8198bf664 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; |