Kea 2.7.5
post_request.cc
Go to the documentation of this file.
1// Copyright (C) 2016-2020 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#include <config.h>
8
9#include <http/post_request.h>
10
11namespace isc {
12namespace http {
13
20
21PostHttpRequest::PostHttpRequest(const Method& method, const std::string& uri,
22 const HttpVersion& version,
23 const HostHttpHeader& host_header,
24 const BasicHttpAuthPtr& basic_auth)
25 : HttpRequest(method, uri, version, host_header, basic_auth) {
27 requireHeader("Content-Length");
28 requireHeader("Content-Type");
29}
30
31
32} // namespace http
33} // namespace isc
int version()
returns Kea hooks version.
Represents HTTP Host header.
Definition http_header.h:68
void requireHeader(const std::string &header_name)
Specifies a required HTTP header for the HTTP message.
Represents HTTP request message.
Definition request.h:57
Method
HTTP methods.
Definition request.h:61
void requireHttpMethod(const HttpRequest::Method &method)
Specifies an HTTP method allowed for the request.
Definition request.cc:63
PostHttpRequest()
Constructor for inbound HTTP request.
boost::shared_ptr< BasicHttpAuth > BasicHttpAuthPtr
Type of pointers to basic HTTP authentication objects.
Definition basic_auth.h:70
Defines the logger used by the top-level component of kea-lfc.
HTTP protocol version.
Definition http_types.h:14