bref
API 2014 of the Zia HTTP server.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions | Private Attributes
bref::HttpRequest Class Reference

HTTP request container. More...

#include <HttpRequest.h>

Inherits std::map< std::string, BrefValue >.

List of all members.

Public Member Functions

 HttpRequest ()
 Construct an empty request.
 ~HttpRequest ()
 Destructor.
request_methods::Type getMethod () const
 Get HTTP method.
const std::string & getUri () const
 Get HTTP request URI.
const VersiongetVersion () const
 Get current HTTP version.
void setMethod (request_methods::Type)
 Set used HTTP method.
void setUri (const std::string &)
 Set asked HTTP URI.
void setVersion (const Version &)
 Set HTTP version.

Private Attributes

request_methods::Type method_
 Contains HTTP method.
std::string uri_
 Contains HTTP request URI.
Version version_
 Contains used HTTP version.

Detailed Description

HTTP request container.

Contains a HTTP request using HttpHeader

See also:
HttpResponse

Member Function Documentation

Get HTTP method.

Returns:
Used HTTP method
const std::string& bref::HttpRequest::getUri ( ) const

Get HTTP request URI.

Returns:
HTTP request URI

Get current HTTP version.

Returns:
Used HTTP version

Member Data Documentation

Contains HTTP method.

See also:
RequestMethods::Type

The documentation for this class was generated from the following file: