EHS Embedded HTTP Server  1.5.0.132
FormValue Class Reference

This class stores form data sent from the client in GET and POST requests. More...

#include <formvalue.h>

+ Collaboration diagram for FormValue:

List of all members.

Public Member Functions

 FormValue ()
 Default constructor.
 FormValue (std::string &irsBody, ContentDisposition &ioContentDisposition)
 Constructs a new instance.
 FormValue (const FormValue &iroFormValue)
 Copy constructor.
virtual ~FormValue ()
 Destructor.

Public Attributes

StringMap m_oFormHeaders
 for MIME attachments only, normal header information like content-type -- everything except content-disposition, which is in oContentDisposition
ContentDisposition m_oContentDisposition
 everything in the content disposition line
std::string m_sBody
 the body of the value. For non-MIME-style attachments, this is the only part used.

Detailed Description

This class stores form data sent from the client in GET and POST requests.

Metadata within MIME-style attachments is decoded and stored into members of this class. Each element of a form is put into a ContentDisposition object for later retrieval.


Constructor & Destructor Documentation

FormValue ( std::string &  irsBody,
ContentDisposition ioContentDisposition 
)

Constructs a new instance.

Parameters:
irsBodyThe body content of the form element.
ioContentDispositionThe content disposition type string.

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