summaryrefslogtreecommitdiffstats
path: root/src/lib/http/post_request.h
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2016-12-08 14:15:28 +0100
committerMarcin Siodelski <marcin@isc.org>2016-12-13 13:52:08 +0100
commit0fc1359eba5c653c9ec5d4ad3d2940741287b994 (patch)
tree9b54850dda9601c1652deb9caa94648b50f21585 /src/lib/http/post_request.h
parent[5077] Created libkea-http library. (diff)
downloadkea-0fc1359eba5c653c9ec5d4ad3d2940741287b994.tar.xz
kea-0fc1359eba5c653c9ec5d4ad3d2940741287b994.zip
[5077] Implemented HTTP request parser.
Diffstat (limited to 'src/lib/http/post_request.h')
-rw-r--r--src/lib/http/post_request.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/http/post_request.h b/src/lib/http/post_request.h
new file mode 100644
index 0000000000..04f5564a65
--- /dev/null
+++ b/src/lib/http/post_request.h
@@ -0,0 +1,31 @@
+// Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#ifndef HTTP_POST_REQUEST_H
+#define HTTP_POST_REQUEST_H
+
+#include <http/request.h>
+
+namespace isc {
+namespace http {
+
+/// @brief Represents HTTP POST request.
+///
+/// Instructs the parent class to require:
+/// - HTTP POST message type,
+/// - Content-Length header,
+/// - Content-Type header.
+class PostHttpRequest : public HttpRequest {
+public:
+
+ /// @brief Constructor.
+ PostHttpRequest();
+};
+
+} // namespace http
+} // namespace isc
+
+#endif