v2026.6.4
All Bundles
Bundle HTTP server framework. WebServer registers route handlers for GET/POST/PUT/DELETE, parses query params and multipart form data, and supports OAuth token exchange. Compile with -lib net_server.

MultipartContent

Multipart content

Operations

GetContent #

Get MIME content

method : public : GetContent() ~ Byte[]

Return

TypeDescription
ByteMIME bytes

GetHeader #

Get MIME content header

method : public : GetHeader(name:String) ~ String

Parameters

NameTypeDescription
nameStringheader name

Return

TypeDescription
Stringheader value

GetHeaderNames #

Get MIME content header names

method : public : GetHeaderNames() ~ Vector<String>

Return

TypeDescription
Vector<String>header names

GetHeaders #

Get MIME content headers

method : public : GetHeaders() ~ Map<String,String>

Return

TypeDescription
Map<String,String>content headers

HasContent #

Checks for request body content

method : public : HasContent() ~ Bool

Return

TypeDescription
Booltrue if content exists, false otherwise

New # constructor

Constructor

New(headers:Map<String,String>, content:Byte[])

Parameters

NameTypeDescription
headersMap<String,String>name/value headers. Names are store as lower-case.
contentBytecontent