Holds a piece of HTTP post data. More...
#include <http.hpp>
Public Types | |
enum | Type { file, form } |
Type of POST data piece. More... | |
Public Member Functions | |
Post () | |
Post (const Post &x) | |
Public Attributes | |
enum Fastcgipp::Http::Post::Type | type |
std::basic_string< charT > | value |
Value of POST data if type=form. | |
std::basic_string< charT > & | filename |
Filename of POST data if type=file. | |
std::basic_string< charT > | contentType |
Content Type if type=file. | |
boost::shared_array< char > | data |
Pointer to file data. | |
size_t | size |
Size of data in bytes pointed to by data. |
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.
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 |
Fastcgipp::Http::Post< charT >::Post | ( | ) | [inline] |
Fastcgipp::Http::Post< charT >::Post | ( | const Post< charT > & | x ) | [inline] |
std::basic_string<charT> Fastcgipp::Http::Post< charT >::contentType |
Content Type if type=file.
Definition at line 65 of file http.hpp.
Referenced by Fastcgipp::Http::Environment< charT >::fillPostsMultipart().
boost::shared_array<char> Fastcgipp::Http::Post< charT >::data |
Pointer to file data.
Definition at line 67 of file http.hpp.
Referenced by Fastcgipp::Http::Environment< charT >::fillPostsMultipart().
std::basic_string<charT>& Fastcgipp::Http::Post< charT >::filename |
Filename of POST data if type=file.
Definition at line 63 of file http.hpp.
Referenced by Fastcgipp::Http::Environment< charT >::fillPostsMultipart().
size_t Fastcgipp::Http::Post< charT >::size |
Size of data in bytes pointed to by data.
Definition at line 69 of file http.hpp.
Referenced by Fastcgipp::Http::Environment< charT >::fillPostsMultipart().
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.
Definition at line 61 of file http.hpp.
Referenced by Fastcgipp::Http::Environment< charT >::fillPostsMultipart(), and Fastcgipp::Http::Environment< charT >::fillPostsUrlEncoded().