HTP
0.5
|
#include <htp_multipart.h>
Data Fields | |
htp_mpartp_t * | parser |
enum htp_multipart_type_t | type |
size_t | len |
bstr * | name |
bstr * | value |
bstr * | content_type |
htp_table_t * | headers |
htp_file_t * | file |
Holds information related to a part.
bstr* htp_multipart_part_t::content_type |
Part content type, from the Content-Type header. Can be NULL.
htp_file_t* htp_multipart_part_t::file |
File data, available only for MULTIPART_PART_FILE parts.
htp_table_t* htp_multipart_part_t::headers |
Part headers (htp_header_t instances), using header name as the key.
size_t htp_multipart_part_t::len |
Raw part length (i.e., headers and data).
bstr* htp_multipart_part_t::name |
Part name, from the Content-Disposition header. Can be NULL.
htp_mpartp_t* htp_multipart_part_t::parser |
Pointer to the parser.
enum htp_multipart_type_t htp_multipart_part_t::type |
Part type; see the MULTIPART_PART_* constants.
bstr* htp_multipart_part_t::value |
Part value; the contents depends on the type of the part: 1) NULL for files; 2) contains complete part contents for preamble and epilogue parts (they have no headers), and 3) data only (headers excluded) for text and unknown parts.