From 448e8bcf0558bac778cbf263b742e1f89e4d9553 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sat, 26 Mar 2022 12:21:23 +0100 Subject: [PATCH] add a stream ID getter function to the body --- http3/body.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/http3/body.go b/http3/body.go index b3cdf8018..2f43f4dd2 100644 --- a/http3/body.go +++ b/http3/body.go @@ -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.