kazu-yamamoto / http2

HTTP/2.0 library including HPACK
BSD 3-Clause "New" or "Revised" License
86 stars 22 forks source link

Frame Parsing extensibility #1

Closed bbangert closed 10 years ago

bbangert commented 10 years ago

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.

bbangert commented 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.

kazu-yamamoto commented 10 years ago

Feature requirement: frames which cannot be handled by the UnknownFrame handler must be ignored according to HTTP/2 spec.