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