Multipart

constructor(mimeType: String)(source)

Creates a new empty #SoupMultipart with a randomly-generated boundary string.

Note that @mime_type must be the full MIME type, including "multipart/".

See also: ctor@Message.new_from_multipart.

Return

a new empty #SoupMultipart of the given @mime_type

Parameters

mimeType

the MIME type of the multipart to create.


constructor(headers: MessageHeaders, body: <Error class: unknown class>)(source)

Parses @headers and @body to form a new #SoupMultipart

Return

a new #SoupMultipart (or null if the message couldn't be parsed or wasn't multipart).

Parameters

headers

the headers of the HTTP message to parse

body

the body of the HTTP message to parse


constructor(soupMultipartPointer: <Error class: unknown class><<Error class: unknown class>>)(source)