forked from quic-go/quic-go
add a stream ID getter function to the body
This commit is contained in:
@@ -120,6 +120,10 @@ func (r *body) requestDone() {
|
||||
r.reqDoneClosed = true
|
||||
}
|
||||
|
||||
func (r *body) StreamID() quic.StreamID {
|
||||
return r.str.StreamID()
|
||||
}
|
||||
|
||||
func (r *body) Close() error {
|
||||
r.requestDone()
|
||||
// If the EOF was read, CancelRead() is a no-op.
|
||||
|
||||
Reference in New Issue
Block a user