diff options
Diffstat (limited to 'src/lib/http/post_request.h')
-rw-r--r-- | src/lib/http/post_request.h | 40 |
1 files changed, 40 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..dd16143734 --- /dev/null +++ b/src/lib/http/post_request.h @@ -0,0 +1,40 @@ +// Copyright (C) 2016-2017 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> +#include <boost/shared_ptr.hpp> + +namespace isc { +namespace http { + +class PostHttpRequest; + +/// @brief Pointer to @ref PostHttpRequest. +typedef boost::shared_ptr<PostHttpRequest> PostHttpRequestPtr; +/// @brief Pointer to const @ref PostHttpRequest. +typedef boost::shared_ptr<const PostHttpRequest> ConstPostHttpRequestPtr; + +/// @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 |