diff options
author | Sergey Polovko <sergey@polovko.me> | 2022-02-10 16:47:02 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:02 +0300 |
commit | 3e0b762a82514bac89c1dd6ea7211e381d8aa248 (patch) | |
tree | c2d1b379ecaf05ca8f11ed0b5da9d1a950e6e554 /library/cpp/http/server | |
parent | ab3783171cc30e262243a0227c86118f7080c896 (diff) | |
download | ydb-3e0b762a82514bac89c1dd6ea7211e381d8aa248.tar.gz |
Restoring authorship annotation for Sergey Polovko <sergey@polovko.me>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/server')
-rw-r--r-- | library/cpp/http/server/options.h | 8 | ||||
-rw-r--r-- | library/cpp/http/server/response.h | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/http/server/options.h b/library/cpp/http/server/options.h index 38eda0e5e78..f837ef0b087 100644 --- a/library/cpp/http/server/options.h +++ b/library/cpp/http/server/options.h @@ -18,18 +18,18 @@ public: using TBindAddresses = TVector<TNetworkAddress>; void BindAddresses(TBindAddresses& ret) const; - inline THttpServerOptions& AddBindAddress(const TString& address, ui16 port) { + inline THttpServerOptions& AddBindAddress(const TString& address, ui16 port) { const TAddr addr = { address, port, }; BindSockaddr.push_back(addr); - return *this; + return *this; } - inline THttpServerOptions& AddBindAddress(const TString& address) { - return AddBindAddress(address, 0); + inline THttpServerOptions& AddBindAddress(const TString& address) { + return AddBindAddress(address, 0); } inline THttpServerOptions& EnableKeepAlive(bool enable) noexcept { diff --git a/library/cpp/http/server/response.h b/library/cpp/http/server/response.h index a75cb85605f..ff03ddebd59 100644 --- a/library/cpp/http/server/response.h +++ b/library/cpp/http/server/response.h @@ -68,13 +68,13 @@ public: return Code; } - THttpResponse& SetHttpCode(HttpCodes code) { - Code = code; - return *this; - } - + THttpResponse& SetHttpCode(HttpCodes code) { + Code = code; + return *this; + } + void OutTo(IOutputStream& out) const; - + private: HttpCodes Code; THttpHeaders Headers; |