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