H2cPriorKnowledge Module

Functions and values

Function or value Description

handlePriorKnowledge facade

Full Usage: handlePriorKnowledge facade

Parameters:
Returns: Task<Result<bool, Error>>

The handler installed on `ConnectionFacade.Http2PriorKnowledgeHandler`. It owns the connection from the moment it is invoked: it consumes the remainder of the preface, marks the connection long-lived, and runs the HTTP/2 read/dispatch loop. Returns `Ok false` to break the HTTP/1.1 keep-alive loop in the facade.

facade : ConnectionFacade
Returns: Task<Result<bool, Error>>

register ()

Full Usage: register ()

Parameters:
    () : unit

Wire `handlePriorKnowledge` into `ConnectionFacade.Http2PriorKnowledgeHandler`. Idempotent — safe to call from multiple bindings / restarts.

() : unit