Http3Session
HTTP/3 (QUIC) session. Socket-level primitive for HTTP/3 requests. Used by net_quic.obl.
Operations
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() ~ StringGetResponseStatus
Returns the HTTP response status code from the last request
method : public : GetResponseStatus() ~ IntNew
Opens an HTTP/3 QUIC connection to host:port.
New(host:String, port:Int)Parameters
| Name | Type | Description |
|---|---|---|
| host | String | hostname |
| port | Int | port number (default 443) |
Request
Performs a single HTTP/3 request.
method : public : Request(verb:String, path:String, body:Byte[], content_type:String) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| verb | String | HTTP method string |
| path | String | request path |
| body | Byte | request body bytes, or Nil |
| content_type | String | MIME type string, or Nil |
Return
| Type | Description |
|---|---|
| Bool | true on success, false on failure |