Fastcgipp::Http::Post< charT > Struct Template Reference

Holds a piece of HTTP post data. More...

#include <http.hpp>

List of all members.

Public Types

enum  Type { file, form }
 Type of POST data piece. More...

Public Attributes

enum Fastcgipp::Http::Post::Type type
 Type of POST data piece.
std::basic_string< charT > value
 Value of POST data if type=form or the filename if type=file.
boost::shared_array< char > data
 Pointer to file data.
size_t size
 Size of data in bytes pointed to by data.


Detailed Description

template<class charT>
struct Fastcgipp::Http::Post< charT >

Holds a piece of HTTP post data.

This structure will hold one of two types of HTTP post data. It can either contain form data, in which case the data field is empty and the size is zero; or it can hold an uploaded file, in which case data contains a pointer to the file data, size contains it's size and value holds it's filename. The actual name associated with the piece of post data is omitted from the class so it can be linked in an associative container.

Template Parameters:
charT Type of character to use in the value string (char or wchar_t)

Definition at line 56 of file http.hpp.


Member Enumeration Documentation

template<class charT >
enum Fastcgipp::Http::Post::Type

Type of POST data piece.

Enumerator:
file 
form 

Definition at line 59 of file http.hpp.


Member Data Documentation

template<class charT >
boost::shared_array<char> Fastcgipp::Http::Post< charT >::data

Pointer to file data.

Definition at line 63 of file http.hpp.

Referenced by Fastcgipp::Http::Session< charT >::fillPosts().

template<class charT >
size_t Fastcgipp::Http::Post< charT >::size

Size of data in bytes pointed to by data.

Definition at line 65 of file http.hpp.

Referenced by Fastcgipp::Http::Session< charT >::fillPosts().

template<class charT >
enum Fastcgipp::Http::Post::Type Fastcgipp::Http::Post< charT >::type

Type of POST data piece.

Referenced by Fastcgipp::Http::Session< charT >::fillPosts().

template<class charT >
std::basic_string<charT> Fastcgipp::Http::Post< charT >::value

Value of POST data if type=form or the filename if type=file.

Definition at line 61 of file http.hpp.

Referenced by Fastcgipp::Http::Session< charT >::fillPosts().


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

Generated on Thu Dec 11 01:47:29 2008 for fastcgi++ by  doxygen 1.5.7.1