Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
Public Member Functions | List of all members
MessageBody Class Reference

wrapper class for http body More...

#include <message_body.h>

Collaboration diagram for MessageBody:
Collaboration graph

Public Member Functions

 MessageBody ()
 
 MessageBody (std::string &body)
 
 MessageBody (const char *body)
 
void setBody (std::string &body)
 
std::string getBody ()
 
void clear ()
 

Detailed Description

wrapper class for http body

MessageBody contains decoded information about http body

Constructor & Destructor Documentation

MessageBody::MessageBody ( )

Create empty http body

MessageBody::MessageBody ( std::string &  body)

Create http body from input string

Parameters
bodyinput string
MessageBody::MessageBody ( const char *  body)

Create http body from input string

Parameters
bodyinput string

Member Function Documentation

void MessageBody::clear ( )

delete all data

std::string MessageBody::getBody ( )

get http body as string

Returns
http body
void MessageBody::setBody ( std::string &  body)

set http body as string

Parameters
bodyhttp body

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