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

#include <Message.hpp>

Inheritance diagram for HTTP::Message:
Collaboration diagram for HTTP::Message:

Public Member Functions

 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
 

Protected Attributes

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 a HTTP Message

Definition at line 19 of file Message.hpp.

Constructor & Destructor Documentation

HTTP::Message::Message ( )

Definition at line 10 of file Message.cpp.

HTTP::Message::~Message ( )
virtual

Definition at line 14 of file Message.cpp.

Member Function Documentation

char *const HTTP::Message::GetBody ( ) const
Returns
body

Definition at line 22 of file Message.cpp.

Header & HTTP::Message::GetHeader ( )
Returns
Header reference

Definition at line 18 of file Message.cpp.

Here is the caller graph for this function:

std::string HTTP::Message::GetHTTPVersion ( ) const

Definition at line 26 of file Message.cpp.

CommunicationSession * HTTP::Message::GetSocket ( ) const
Returns
pointer on socket

Definition at line 50 of file Message.cpp.

void HTTP::Message::SetBody ( std::string const &  body)

set body

Parameters
body

Definition at line 38 of file Message.cpp.

Here is the caller graph for this function:

void HTTP::Message::SetBody ( const char *  body,
unsigned long  size 
)

Definition at line 42 of file Message.cpp.

void HTTP::Message::SetHTTPVersion ( unsigned char  major,
unsigned char  minor 
)

set version of HTTP

Parameters
major
minor

Definition at line 33 of file Message.cpp.

Member Data Documentation

char* HTTP::Message::m_body = nullptr
protected

Definition at line 31 of file Message.hpp.

CommunicationSession* HTTP::Message::m_communicationSession
protected

Definition at line 35 of file Message.hpp.

int HTTP::Message::m_content_length
protected

Definition at line 33 of file Message.hpp.

Header HTTP::Message::m_header
protected

Definition at line 29 of file Message.hpp.

unsigned char HTTP::Message::m_http_version_major
protected

Definition at line 26 of file Message.hpp.

unsigned char HTTP::Message::m_http_version_minor
protected

Definition at line 27 of file Message.hpp.


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