H2cUpgrade Module
Functions and values
| Function or value | Description |
Full Usage:
decodeBase64Url s
Parameters:
string
Returns: byte[] option
|
Decode the base64url payload of an `HTTP2-Settings` header (RFC 7540 §3.2.1, RFC 7235 token68). Returns `None` for malformed input. Surrounding linear whitespace is tolerated: although token68 itself disallows whitespace, the header value can still arrive with surrounding LWS depending on upstream parsing.
|
Full Usage:
handleUpgrade facade request
Parameters:
ConnectionFacade
request : HttpRequest
Returns: Task<Result<bool, Error>>
|
The handler installed on `ConnectionFacade.Http2UpgradeHandler`. It owns the connection from the moment it is invoked: it writes the 101, marks the connection as long-lived (so the health checker leaves it alone), then runs the HTTP/2 connection-preface exchange before returning `Ok false` to break the HTTP/1.1 keep-alive loop.
|
Full Usage:
register ()
Parameters:
unit
|
|
|
|
Full Usage:
tryDecodeHttp2SettingsHeader headerValue
Parameters:
string
Returns: Settings option
|