Connector.onFrameHeader

Callback function invoked when a frame header is received. The |hd| points to received frame header.

Unlike Connector.onFrame, this callback will also be called when frame header of CONTINUATION frame is received.

If both Connector.onFrameHeader and Connector.onHeaders are set and HEADERS or PUSH_PROMISE is received, Connector.onFrameReady will be called first.

The implementation of this function must return true if it succeeds. If false value is returned, it is treated as fatal error and Session.recv and http2_session_mem_recv() functions immediately return ErrorCode.CALLBACK_FAILURE.

class Connector
bool
onFrameHeader

Meta