Commit 87bca11 1 parent 8d3b489 commit 87bca11 Copy full SHA for 87bca11
File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 7
7
"net/http"
8
8
"time"
9
9
10
+ "github.com/quic-go/quic-go/http3"
10
11
"github.com/rs/zerolog/log"
11
12
)
12
13
@@ -61,10 +62,15 @@ func (lrw *logResponseWriter) Flush() {
61
62
lrw .ResponseWriter .(http.Flusher ).Flush ()
62
63
}
63
64
64
- // // StreamCreator for WebTransport.
65
- // func (lrw *logResponseWriter) StreamCreator() http3.StreamCreator {
66
- // return lrw.ResponseWriter.(http3.Hijacker).StreamCreator()
67
- // }
65
+ // Connection for WebTransport.
66
+ func (lrw * logResponseWriter ) Connection () http3.Connection {
67
+ return lrw .ResponseWriter .(http3.Hijacker ).Connection ()
68
+ }
69
+
70
+ // HTTPStream for WebTransport.
71
+ func (lrw * logResponseWriter ) HTTPStream () http3.Stream {
72
+ return lrw .ResponseWriter .(http3.HTTPStreamer ).HTTPStream ()
73
+ }
68
74
69
75
// CloseNotify as SockJS uses http.CloseNotifier.
70
76
//
You can’t perform that action at this time.
0 commit comments