#include <http.hpp>
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. |
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.
charT | Type of character to use in the value string (char or wchar_t) |
Definition at line 56 of file http.hpp.
enum Fastcgipp::Http::Post::Type |
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().
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().
enum Fastcgipp::Http::Post::Type Fastcgipp::Http::Post< charT >::type |
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().