forked from quic-go/quic-go
fix handling of unknown frames in the stream hijacker
This commit is contained in:
@@ -53,7 +53,7 @@ type RoundTripper struct {
|
||||
|
||||
// When set, this callback is called for the first unknown frame parsed on a bidirectional stream.
|
||||
// It is called right after parsing the frame type.
|
||||
// Callers can either process the frame and return control of the stream back to HTTP/3
|
||||
// Callers can either ignore the frame and return control of the stream back to HTTP/3
|
||||
// (by returning hijacked false).
|
||||
// Alternatively, callers can take over the QUIC stream (by returning hijacked true).
|
||||
StreamHijacker func(FrameType, quic.Connection, quic.Stream) (hijacked bool, err error)
|
||||
|
||||
Reference in New Issue
Block a user