Browse Source

Restoring authorship annotation for <mironov@yandex-team.ru>. Commit 2 of 2.

mironov 3 years ago
parent
commit
ceabccd128

+ 9 - 9
library/cpp/http/io/chunk.h

@@ -6,11 +6,11 @@
 
 class THttpHeaders;
 
-/// @addtogroup Streams_Chunked 
-/// @{ 
-/// Ввод данных порциями. 
-/// @details Последовательное чтение блоков данных. Предполагается, что 
-/// данные записаны в виде <длина блока><блок данных>. 
+/// @addtogroup Streams_Chunked
+/// @{
+/// Ввод данных порциями.
+/// @details Последовательное чтение блоков данных. Предполагается, что
+/// данные записаны в виде <длина блока><блок данных>.
 class TChunkedInput: public IInputStream {
 public:
     /// Если передан указатель на trailers, то туда будут записаны HTTP trailer'ы (возможно пустые),
@@ -27,9 +27,9 @@ private:
     THolder<TImpl> Impl_;
 };
 
-/// Вывод данных порциями. 
-/// @details Вывод данных блоками в виде <длина блока><блок данных>. Если объем 
-/// данных превышает 64K, они записываются в виде n блоков по 64K + то, что осталось. 
+/// Вывод данных порциями.
+/// @details Вывод данных блоками в виде <длина блока><блок данных>. Если объем
+/// данных превышает 64K, они записываются в виде n блоков по 64K + то, что осталось.
 class TChunkedOutput: public IOutputStream {
 public:
     TChunkedOutput(IOutputStream* slave);
@@ -44,4 +44,4 @@ private:
     class TImpl;
     THolder<TImpl> Impl_;
 };
-/// @} 
+/// @}

+ 1 - 1
library/cpp/http/io/compression.h

@@ -28,7 +28,7 @@ public:
         if (auto codec = Codecs_.FindPtr(name)) {
             return &codec->Encoder;
         }
- 
+
         return nullptr;
     }
 

+ 6 - 6
library/cpp/http/io/headers.h

@@ -9,9 +9,9 @@
 class IInputStream;
 class IOutputStream;
 
-/// @addtogroup Streams_HTTP 
-/// @{ 
-/// Объект, содержащий информацию о HTTP-заголовке. 
+/// @addtogroup Streams_HTTP
+/// @{
+/// Объект, содержащий информацию о HTTP-заголовке.
 class THttpInputHeader {
 public:
     /// @param[in] header - строка вида 'параметр: значение'.
@@ -43,7 +43,7 @@ private:
     TString Value_;
 };
 
-/// Контейнер для хранения HTTP-заголовков 
+/// Контейнер для хранения HTTP-заголовков
 class THttpHeaders {
     using THeaders = TDeque<THttpInputHeader>;
 
@@ -80,7 +80,7 @@ public:
     inline bool Empty() const noexcept {
         return Headers_.empty();
     }
- 
+
     /// Добавляет заголовок в контейнер.
     void AddHeader(THttpInputHeader header);
 
@@ -122,4 +122,4 @@ private:
     THeaders Headers_;
 };
 
-/// @} 
+/// @}

+ 8 - 8
library/cpp/http/io/stream.h

@@ -21,7 +21,7 @@ struct THttpParseException: public THttpException {
 struct THttpReadException: public THttpException {
 };
 
-/// Чтение ответа HTTP-сервера. 
+/// Чтение ответа HTTP-сервера.
 class THttpInput: public IInputStream {
 public:
     THttpInput(IInputStream* slave);
@@ -65,7 +65,7 @@ public:
     /// Проверяет, поддерживается ли данный тип кодирования содержимого
     /// ответа HTTP-сервера.
     bool AcceptEncoding(const TString& coding) const;
- 
+
     /// Пытается определить наилучший тип кодирования ответа HTTP-сервера.
     /// @details Если ответ сервера говорит о том, что поддерживаются
     /// любые типы кодирования, выбирается gzip. В противном случае
@@ -95,7 +95,7 @@ private:
     THolder<TImpl> Impl_;
 };
 
-/// Передача запроса HTTP-серверу. 
+/// Передача запроса HTTP-серверу.
 class THttpOutput: public IOutputStream {
 public:
     THttpOutput(IOutputStream* slave);
@@ -111,7 +111,7 @@ public:
     /// Устанавливает режим, при котором сервер выдает ответ в упакованном виде.
     void EnableCompression(bool enable);
     void EnableCompression(TArrayRef<const TStringBuf> schemas);
- 
+
     /// Устанавливает режим, при котором соединение с сервером не завершается
     /// после окончания транзакции.
     void EnableKeepAlive(bool enable);
@@ -126,7 +126,7 @@ public:
 
     /// Проверяет, производится ли выдача ответов в упакованном виде.
     bool IsCompressionEnabled() const noexcept;
- 
+
     /// Проверяет, не завершается ли соединение с сервером после окончания транзакции.
     bool IsKeepAliveEnabled() const noexcept;
 
@@ -167,12 +167,12 @@ private:
     THolder<TImpl> Impl_;
 };
 
-/// Возвращает код состояния из ответа сервера. 
+/// Возвращает код состояния из ответа сервера.
 unsigned ParseHttpRetCode(const TStringBuf& ret);
 
-/// Отправляет HTTP-серверу запрос с минимумом необходимых заголовков. 
+/// Отправляет HTTP-серверу запрос с минимумом необходимых заголовков.
 void SendMinimalHttpRequest(TSocket& s, const TStringBuf& host, const TStringBuf& request, const TStringBuf& agent = "YandexSomething/1.0", const TStringBuf& from = "webadmin@yandex.ru");
 
 TArrayRef<const TStringBuf> SupportedCodings();
 
-/// @} 
+/// @}

+ 1 - 1
util/stream/buffer.h

@@ -39,7 +39,7 @@ public:
     TBufferOutput& operator=(TBufferOutput&&) noexcept;
 
     ~TBufferOutput() override;
- 
+
     /**
      * @returns                         Buffer that this stream writes into.
      */

+ 5 - 5
util/stream/input.h

@@ -69,7 +69,7 @@ public:
     inline size_t ReadTo(TString& st, char ch) {
         return DoReadTo(st, ch);
     }
- 
+
     /**
      * Reads the requested amount of data from the stream. Unlike `Read`, this
      * function stops only when the requested amount of data is read, or when
@@ -92,14 +92,14 @@ public:
      * @see Load
      */
     void LoadOrFail(void* buf, size_t len);
- 
+
     /**
      * Reads all data from this stream and returns it as a string.
      *
      * @returns                         Contents of this stream as a string.
      */
     TString ReadAll();
- 
+
     /**
      * Reads all data from this stream and writes it into a provided output
      * stream.
@@ -120,7 +120,7 @@ public:
      *                                  reached.
      */
     TString ReadLine();
- 
+
     /**
      * Reads all characters from the stream until the given character is
      * encountered and returns them as a string. The character itself is read
@@ -133,7 +133,7 @@ public:
      *                                  reached.
      */
     TString ReadTo(char ch);
- 
+
     /**
      * Reads all data from the stream until the first occurrence of '\n' and
      * stores it into provided string. Also handles Windows line breaks correctly.

+ 1 - 1
util/stream/mem.h

@@ -16,7 +16,7 @@
 class TMemoryInput: public IZeroCopyInputFastReadTo {
 public:
     TMemoryInput() noexcept;
- 
+
     /**
      * Constructs a stream that reads from the provided memory block. It's up
      * to the user to make sure that the memory block doesn't get freed while