aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/server/http.h
diff options
context:
space:
mode:
authorishfb <ishfb@yandex-team.ru>2022-02-10 16:48:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:08 +0300
commit069c69f58fd78de3cf2e6eb2304047281e21fb65 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/http/server/http.h
parent0170772a2dbf133f32e17ca137ff64790d43831f (diff)
downloadydb-069c69f58fd78de3cf2e6eb2304047281e21fb65.tar.gz
Restoring authorship annotation for <ishfb@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/server/http.h')
-rw-r--r--library/cpp/http/server/http.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/library/cpp/http/server/http.h b/library/cpp/http/server/http.h
index 2993415bfe..b292d38f27 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);