Closed bbangert closed 10 years ago
Actually, a simpler solution would be for the HTTP/2 connection handler to have a way to supply an UnknownFrame handler. Then someone could supply one that handles unknown frame's externally to decodeFrame.
Feature requirement: frames which cannot be handled by the UnknownFrame handler must be ignored according to HTTP/2 spec.
To support HTTP/2 extensions, the core HTTP2 library should have a way to extend the built-in frame handlers.
The frame decoder/encoder should probably be made into a Frame type-class for encoding/decoding. The frame handlers should be stored in an exposed array so that someone extending it can supply additional frame handlers to the http2 streaming portions meeting the Frame type-class.