Understand Aleph's HTTP/2 API modes
masterAleph provides two distinct ways to interact with HTTP/2, allowing you to choose between standard Ring compatibility and low-level connection control:
Backwards-compatibility mode: This is the default mode. It uses the standard Ring API where your handler receives a single Ring map (with an
InputStreambody) and returns a Ring response map. In this mode, all streams have equal priority, and flow control uses a default Netty policy of a 64 kb window that auto-replenishes as bytes are read.HTTP/2 connection mode: This mode provides a connection-level handler API. It allows you to access the entire connection, all streams within that connection, and all frames within those streams. This is intended for users who need fine-grained control over the HTTP/2 protocol.