v2026.5.2
All Bundles

Http3Session

HTTP/3 (QUIC) session. Socket-level primitive for HTTP/3 requests. Used by net_quic.obl.

Operations

Close

Closes the HTTP/3 connection and frees native resources

method : public : Close() ~ Nil

GetResponseBody

Returns the HTTP response body bytes from the last request

method : public : GetResponseBody() ~ Byte[]

GetResponseContentType

Returns the HTTP response Content-Type from the last request

method : public : GetResponseContentType() ~ String

GetResponseStatus

Returns the HTTP response status code from the last request

method : public : GetResponseStatus() ~ Int

IsConnected

Returns true if the QUIC connection is established

method : public : IsConnected() ~ Bool

New

Opens an HTTP/3 QUIC connection to host:port.

New(host:String, port:Int)

Parameters

NameTypeDescription
hostStringhostname
portIntport number (default 443)

Request

Performs a single HTTP/3 request.

method : public : Request(verb:String, path:String, body:Byte[], content_type:String) ~ Bool

Parameters

NameTypeDescription
verbStringHTTP method string
pathStringrequest path
bodyByterequest body bytes, or Nil
content_typeStringMIME type string, or Nil

Return

TypeDescription
Booltrue on success, false on failure