• Tatsuhiro Tsujikawa's avatar
    Add nghttp2_on_invalid_header_callback · 271f7fbb
    Tatsuhiro Tsujikawa authored
    nghttp2_on_invalid_header_callback is similar to
    nghttp2_on_header_callback, but the former is only called when the
    invalid header field is received which is silently ignored when the
    callback is not set.  With this callback, application inspects the
    incoming invalid field, and it also can reset stream from this
    callback by returning NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE, or using
    nghttp2_submit_rst_stream() directly with the error code of choice.
    
    We also added nghttp2_on_invalid_header_callback2, which uses
    reference counted header fields.
    271f7fbb
nghttp2_callbacks.h 4.45 KB