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

#include <Response.hpp>

Inheritance diagram for HTTP::Response:
Collaboration diagram for HTTP::Response:

Public Member Functions

 Response ()
 
virtual ~Response ()
 
std::string const & GetStatusMsg () const
 
unsigned int GetStatusCode () const
 
RequestGetRequest () const
 
void SetStatusMsg (std::string const &msg)
 set message More...
 
void SetStatusCode (unsigned int code)
 set code More...
 
void SetRequest (Request *request)
 set Request 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 Response

Definition at line 16 of file Response.hpp.

Constructor & Destructor Documentation

HTTP::Response::Response ( )

Definition at line 8 of file Response.cpp.

HTTP::Response::~Response ( )
virtual

Definition at line 12 of file Response.cpp.

Member Function Documentation

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

Definition at line 24 of file Response.cpp.

unsigned int HTTP::Response::GetStatusCode ( ) const
Returns
Status Code

Definition at line 20 of file Response.cpp.

std::string const & HTTP::Response::GetStatusMsg ( ) const
Returns
Status Message

Definition at line 16 of file Response.cpp.

void HTTP::Response::SetRequest ( Request request)

set Request

Parameters
request

Definition at line 36 of file Response.cpp.

void HTTP::Response::SetStatusCode ( unsigned int  code)

set code

Parameters
code

Definition at line 32 of file Response.cpp.

Here is the caller graph for this function:

void HTTP::Response::SetStatusMsg ( std::string const &  msg)

set message

Parameters
msg

Definition at line 28 of file Response.cpp.


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