std1.0.0-beta-7 SafeC docs

std :: http::multipart

Struct std::MultipartPart

#include <std/http/multipart.h> source

struct MultipartPart {
    struct String name;
    struct String filename;
    int has_filename;
    struct String content_type;
    struct HttpHeaders headers;
    struct String data;
}

Fields

§struct String namesource

Content-Disposition name=

§struct String filenamesource

filename= (empty for a plain field)

§int has_filenamesource

1 if filename= was present (even empty)

§struct String content_typesource

the part's Content-Type ("text/plain" if absent)

§struct HttpHeaders headerssource

all of the part's headers

§struct String datasource

the body, binary-safe (use .length())