SaltAPI  1.1
An API for the HTTPd / Zia by Salty Studio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
HTTP::Request Class Reference

#include <Request.hpp>

Inheritance diagram for HTTP::Request:
Collaboration diagram for HTTP::Request:

Public Member Functions

 Request ()
 
virtual ~Request ()
 
std::string const & GetMethod () const
 
std::string const & GetURL () const
 
ResponseGetResponse () const
 
void SetMethod (std::string const &method)
 set Method More...
 
void SetURL (std::string const &url)
 set URL More...
 
void SetResponse (Response *response)
 set Response More...
 
- Public Member Functions inherited from HTTP::Message
 Message ()
 
virtual ~Message ()
 
HeaderGetHeader ()
 
char *const GetBody () const
 
std::string GetHTTPVersion () const
 
void SetHTTPVersion (unsigned char major, unsigned char minor)
 set version of HTTP More...
 
void SetBody (std::string const &body)
 set body More...
 
void SetBody (const char *body, unsigned long size)
 
CommunicationSession * GetSocket () const
 

Additional Inherited Members

- Protected Attributes inherited from HTTP::Message
unsigned char m_http_version_major
 
unsigned char m_http_version_minor
 
Header m_header
 
char * m_body = nullptr
 
int m_content_length
 
CommunicationSession * m_communicationSession
 

Detailed Description

Representation of HTTP Request

Definition at line 16 of file Request.hpp.

Constructor & Destructor Documentation

HTTP::Request::Request ( )

Definition at line 8 of file Request.cpp.

HTTP::Request::~Request ( )
virtual

Definition at line 12 of file Request.cpp.

Member Function Documentation

std::string const & HTTP::Request::GetMethod ( ) const
Returns
method

Definition at line 16 of file Request.cpp.

Response * HTTP::Request::GetResponse ( ) const
Returns
Response pointer

Definition at line 24 of file Request.cpp.

std::string const & HTTP::Request::GetURL ( ) const
Returns
URL

Definition at line 20 of file Request.cpp.

void HTTP::Request::SetMethod ( std::string const &  method)

set Method

Parameters
method

Definition at line 28 of file Request.cpp.

void HTTP::Request::SetResponse ( Response response)

set Response

Parameters
response

Definition at line 36 of file Request.cpp.

void HTTP::Request::SetURL ( std::string const &  url)

set URL

Parameters
url

Definition at line 32 of file Request.cpp.


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