diff options
author | antervis <antervis@yandex-team.ru> | 2022-02-10 16:49:48 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:48 +0300 |
commit | 0942f9eeaefcfc84db83fa240d8ed52b99345e7d (patch) | |
tree | 59616090b13df8c4cb69f2a204dc97c93888262c /library/cpp/http/fetch/httpzreader.h | |
parent | 99ac40630808727955ac0448822228528f1ea92d (diff) | |
download | ydb-0942f9eeaefcfc84db83fa240d8ed52b99345e7d.tar.gz |
Restoring authorship annotation for <antervis@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/fetch/httpzreader.h')
-rw-r--r-- | library/cpp/http/fetch/httpzreader.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/http/fetch/httpzreader.h b/library/cpp/http/fetch/httpzreader.h index 68eb00853d..c510935ae1 100644 --- a/library/cpp/http/fetch/httpzreader.h +++ b/library/cpp/http/fetch/httpzreader.h @@ -25,9 +25,9 @@ public: using TBase::ParseGeneric; using TBase::State; - static constexpr size_t DefaultBufSize = 64 << 10; - static constexpr unsigned int DefaultWinSize = 15; - + static constexpr size_t DefaultBufSize = 64 << 10; + static constexpr unsigned int DefaultWinSize = 15; + TCompressedHttpReader() : CompressedInput(false) , BufSize(0) @@ -58,19 +58,19 @@ public: IgnoreTrailingGarbage = ignore; } - int Init( - THttpHeader* H, - int parsHeader, - const size_t maxContSize = Max<size_t>(), - const size_t bufSize = DefaultBufSize, - const unsigned int winSize = DefaultWinSize, - bool headRequest = false) - { + int Init( + THttpHeader* H, + int parsHeader, + const size_t maxContSize = Max<size_t>(), + const size_t bufSize = DefaultBufSize, + const unsigned int winSize = DefaultWinSize, + bool headRequest = false) + { ZErr = 0; CurContSize = 0; MaxContSize = maxContSize; - int ret = TBase::Init(H, parsHeader, ConnectionClosed, headRequest); + int ret = TBase::Init(H, parsHeader, ConnectionClosed, headRequest); if (ret) return ret; @@ -256,15 +256,15 @@ public: { } - int Init( - THttpHeader* H, - int parsHeader, - const size_t maxContSize = Max<size_t>(), - const size_t bufSize = TBase::DefaultBufSize, - const unsigned int winSize = TBase::DefaultWinSize, - bool headRequest = false) - { - int ret = TBase::Init(H, parsHeader, maxContSize, bufSize, winSize, headRequest); + int Init( + THttpHeader* H, + int parsHeader, + const size_t maxContSize = Max<size_t>(), + const size_t bufSize = TBase::DefaultBufSize, + const unsigned int winSize = TBase::DefaultWinSize, + bool headRequest = false) + { + int ret = TBase::Init(H, parsHeader, maxContSize, bufSize, winSize, headRequest); return (int)HandleRetValue((long)ret); } |