diff options
author | tkhanipov <tkhanipov@yandex-team.ru> | 2022-02-10 16:49:46 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:46 +0300 |
commit | 60c0dade397b9b2f9a22f5daa5b2ea5e433e6e40 (patch) | |
tree | 4acdda76eaabc40a9ee1a272dc41f7a3862409ec /library/cpp/http/io | |
parent | a27ec9dbf04ab9972fd470b53b8bdd41153226e5 (diff) | |
download | ydb-60c0dade397b9b2f9a22f5daa5b2ea5e433e6e40.tar.gz |
Restoring authorship annotation for <tkhanipov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/io')
-rw-r--r-- | library/cpp/http/io/stream.cpp | 16 | ||||
-rw-r--r-- | library/cpp/http/io/stream.h | 12 | ||||
-rw-r--r-- | library/cpp/http/io/stream_ut_medium.cpp | 4 | ||||
-rw-r--r-- | library/cpp/http/io/ut/medium/ya.make | 6 |
4 files changed, 19 insertions, 19 deletions
diff --git a/library/cpp/http/io/stream.cpp b/library/cpp/http/io/stream.cpp index 6689be684f..f96ef5b1b2 100644 --- a/library/cpp/http/io/stream.cpp +++ b/library/cpp/http/io/stream.cpp @@ -619,10 +619,10 @@ public: return SupportChunkedTransfer() && IsKeepAliveEnabled() && (Request_ ? Request_->IsKeepAlive() : true); } - inline const TString& FirstLine() const noexcept { - return FirstLine_; - } - + inline const TString& FirstLine() const noexcept { + return FirstLine_; + } + inline size_t SentSize() const noexcept { return SizeCalculator_.Length(); } @@ -958,10 +958,10 @@ void THttpOutput::SendContinue() { Impl_->SendContinue(); } -const TString& THttpOutput::FirstLine() const noexcept { - return Impl_->FirstLine(); -} - +const TString& THttpOutput::FirstLine() const noexcept { + return Impl_->FirstLine(); +} + size_t THttpOutput::SentSize() const noexcept { return Impl_->SentSize(); } diff --git a/library/cpp/http/io/stream.h b/library/cpp/http/io/stream.h index 78ca4fc814..9b4c4c25f5 100644 --- a/library/cpp/http/io/stream.h +++ b/library/cpp/http/io/stream.h @@ -147,12 +147,12 @@ public: void SendContinue(); - /* - * first line - response or request - */ - /// Возвращает первую строку HTTP-запроса/ответа - const TString& FirstLine() const noexcept; - + /* + * first line - response or request + */ + /// Возвращает первую строку HTTP-запроса/ответа + const TString& FirstLine() const noexcept; + /// Возвращает размер отправленных данных (без заголовков, с учётом сжатия, без /// учёта chunked transfer encoding) size_t SentSize() const noexcept; diff --git a/library/cpp/http/io/stream_ut_medium.cpp b/library/cpp/http/io/stream_ut_medium.cpp index 2c125eb21e..8bcf1207c4 100644 --- a/library/cpp/http/io/stream_ut_medium.cpp +++ b/library/cpp/http/io/stream_ut_medium.cpp @@ -2,7 +2,7 @@ #include <library/cpp/testing/unittest/registar.h> #include <util/stream/zlib.h> -Y_UNIT_TEST_SUITE(THttpTestMedium) { +Y_UNIT_TEST_SUITE(THttpTestMedium) { Y_UNIT_TEST(TestCodings2) { TStringBuf data = "aaaaaaaaaaaaaaaaaaaaaaa"; @@ -51,4 +51,4 @@ Y_UNIT_TEST_SUITE(THttpTestMedium) { } } -} // THttpTestMedium suite +} // THttpTestMedium suite diff --git a/library/cpp/http/io/ut/medium/ya.make b/library/cpp/http/io/ut/medium/ya.make index 235a23dcd7..9addf90942 100644 --- a/library/cpp/http/io/ut/medium/ya.make +++ b/library/cpp/http/io/ut/medium/ya.make @@ -1,11 +1,11 @@ UNITTEST_FOR(library/cpp/http/io) -SIZE(MEDIUM) - +SIZE(MEDIUM) + OWNER(g:util) SRCS( - stream_ut_medium.cpp + stream_ut_medium.cpp ) END() |