diff options
| author | Sergey Polovko <[email protected]> | 2022-02-10 16:47:03 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:03 +0300 | 
| commit | 2e714b5ebd40a1f4cc31c27f1ad6e49ca6d895f5 (patch) | |
| tree | b83306b6e37edeea782e9eed673d89286c4fef35 /library/cpp/http/server | |
| parent | 3e0b762a82514bac89c1dd6ea7211e381d8aa248 (diff) | |
Restoring authorship annotation for Sergey Polovko <[email protected]>. Commit 2 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 f837ef0b087..38eda0e5e78 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 ff03ddebd59..a75cb85605f 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;  | 
