forked from quic-go/quic-go
add a stream ID getter function to the responseWriter
This commit is contained in:
@@ -119,6 +119,10 @@ func (w *responseWriter) DataStream() quic.Stream {
|
|||||||
return w.stream
|
return w.stream
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (w *responseWriter) StreamID() quic.StreamID {
|
||||||
|
return w.stream.StreamID()
|
||||||
|
}
|
||||||
|
|
||||||
// copied from http2/http2.go
|
// copied from http2/http2.go
|
||||||
// bodyAllowedForStatus reports whether a given response status code
|
// bodyAllowedForStatus reports whether a given response status code
|
||||||
// permits a body. See RFC 2616, section 4.4.
|
// permits a body. See RFC 2616, section 4.4.
|
||||||
|
|||||||
Reference in New Issue
Block a user