std1.0.0-beta-7 SafeC docs

std :: http::multipart

Struct std::MultipartForm

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

struct MultipartForm {
    struct Vec<struct MultipartPart> parts;
}

Fields

§struct Vec<struct MultipartPart> partssource

Methods

§static struct MultipartForm parse( const &char content_type, const &unsigned char body, unsigned long len, ?&int ok, )source · definition

Parses a body given its Content-Type header value (which carries the boundary). *ok = 0 on a missing boundary, a missing closing delimiter or a part without headers.

§static struct MultipartForm from_request(const &HttpRequest req, ?&int ok)source · definition

parse() on a request's Content-Type and body.

§unsigned long length() constsource · definition
§?&MultipartPart get(const &char name)source · definition

The first part named 'name', or null; aliases this form's storage.

§?&MultipartPart part_at(unsigned long i)source · definition
§const ?&char value(const &char name) constsource · definition

A plain field's text (its data), or null.

§void drop()source · definition
§void free() consumesource · definition

= drop()