14 #include <boost/shared_ptr.hpp>
121 virtual void reset();
127 std::string
getUri()
const;
140 virtual std::string
toString()
const;
void requireHttpMethod(const HttpRequest::Method &method)
Specifies an HTTP method allowed for the request.
bool isPersistent() const
Checks if the client has requested persistent connection.
Generic exception thrown by HttpRequest class.
Method method_
HTTP method of the request.
Generic exception thrown by HttpMessage class.
virtual std::string toString() const
Returns HTTP message as string.
HttpRequestContextPtr context_
Pointer to the HttpRequestContext holding parsed data.
Method methodFromString(std::string method) const
Converts HTTP method specified in textual format to Method.
std::string methodToString(const HttpRequest::Method &method) const
Converts HTTP method to string.
std::string getBody() const
Returns HTTP message body as string.
Base class for HttpRequest and HttpResponse.
boost::shared_ptr< HttpRequestContext > HttpRequestContextPtr
Pointer to the HttpRequestContext.
std::string getUri() const
Returns HTTP request URI.
HttpRequest()
Constructor for inbound HTTP request.
std::string toBriefString() const
Returns HTTP method, URI and HTTP version as a string.
Base class for classes which need to be associated with a CalloutHandle object.
int version()
returns Kea hooks version.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Defines the logger used by the top-level component of kea-dhcp-ddns.
const HttpRequestContextPtr & context() const
Returns pointer to the HttpRequestContext.
virtual void create()
Commits information held in the context into the request.
boost::shared_ptr< BasicHttpAuth > BasicHttpAuthPtr
Type of pointers to basic HTTP authentication objects.
virtual void finalize()
Completes creation of the HTTP request.
Represents HTTP request message.
boost::shared_ptr< HttpRequest > HttpRequestPtr
Pointer to the HttpRequest object.
std::set< Method > required_methods_
Set of required HTTP methods.
Method getMethod() const
Returns HTTP method of the request.
HttpRequestError(const char *file, size_t line, const char *what)
virtual void reset()
Reset the state of the object.