6#ifndef __CWIST_MULTIPART_H__
7#define __CWIST_MULTIPART_H__
33 const char *boundary);
void cwist_multipart_result_destroy(cwist_multipart_result *result)
Free all memory associated with a multipart parse result.
char * cwist_multipart_extract_boundary(const char *content_type)
Extract the boundary string from a Content-Type header value.
cwist_multipart_result * cwist_multipart_parse(const char *body, size_t body_len, const char *boundary)
Parse a multipart/form-data body.
char * filename
File name (NULL for non-file fields).
char * name
Form field name.
size_t data_len
Length of data in bytes.
struct cwist_multipart_field * next
char * data
Raw part body (may contain binary data).
char * content_type
Content-Type of the part (NULL if absent).
cwist_multipart_field * fields
Head of the field linked list.