#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.
Part content type, from the Content-Type header. Can be NULL.
File data, available only for MULTIPART_PART_FILE parts.
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).
Part name, from the Content-Disposition header. Can be NULL.
Pointer to the parser.
Part type; see the MULTIPART_PART_* constants.
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.