diff options
author | ishfb <ishfb@yandex-team.ru> | 2022-02-10 16:48:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:07 +0300 |
commit | 0170772a2dbf133f32e17ca137ff64790d43831f (patch) | |
tree | 68ce3ab477bcb9e09abf2b0a6e7b34287c53f0df /library/cpp/http/server/http.h | |
parent | df6128370874866447314ec18d8e67fc7bde40b4 (diff) | |
download | ydb-0170772a2dbf133f32e17ca137ff64790d43831f.tar.gz |
Restoring authorship annotation for <ishfb@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/server/http.h')
-rw-r--r-- | library/cpp/http/server/http.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/library/cpp/http/server/http.h b/library/cpp/http/server/http.h index b292d38f27..2993415bfe 100644 --- a/library/cpp/http/server/http.h +++ b/library/cpp/http/server/http.h @@ -99,9 +99,9 @@ private: THolder<TImpl> Impl_; }; -/** - * @deprecated Use TRequestReplier instead - */ +/** + * @deprecated Use TRequestReplier instead + */ class TClientRequest: public IObjectInQueue { friend class THttpServer::TImpl; @@ -149,28 +149,28 @@ private: }; class TRequestReplier: public TClientRequest { -public: - TRequestReplier(); +public: + TRequestReplier(); ~TRequestReplier() override; - - struct TReplyParams { - void* ThreadSpecificResource; - THttpInput& Input; - THttpOutput& Output; - }; - - /* - * Processes the request after 'connection' been created and 'Headers' been read - * Returns 'false' if the processing must be continued by the next handler, - * 'true' otherwise ('this' will be deleted) - */ - virtual bool DoReply(const TReplyParams& params) = 0; - -private: + + struct TReplyParams { + void* ThreadSpecificResource; + THttpInput& Input; + THttpOutput& Output; + }; + + /* + * Processes the request after 'connection' been created and 'Headers' been read + * Returns 'false' if the processing must be continued by the next handler, + * 'true' otherwise ('this' will be deleted) + */ + virtual bool DoReply(const TReplyParams& params) = 0; + +private: bool Reply(void* threadSpecificResource) final; - - using TClientRequest::Input; - using TClientRequest::Output; -}; + + using TClientRequest::Input; + using TClientRequest::Output; +}; bool TryToBindAddresses(const THttpServerOptions& options, const std::function<void(TSocket)>* callbackOnBoundAddress = nullptr); |