forked from quic-go/quic-go
http3: convert Connection interface to Conn struct (#5204)
This commit is contained in:
@@ -29,7 +29,7 @@ const maxSmallResponseSize = 4096
|
||||
type responseWriter struct {
|
||||
str *Stream
|
||||
|
||||
conn Connection
|
||||
conn *Conn
|
||||
header http.Header
|
||||
trailers map[string]struct{}
|
||||
buf []byte
|
||||
@@ -65,7 +65,7 @@ var (
|
||||
} = &responseWriter{}
|
||||
)
|
||||
|
||||
func newResponseWriter(str *Stream, conn Connection, isHead bool, logger *slog.Logger) *responseWriter {
|
||||
func newResponseWriter(str *Stream, conn *Conn, isHead bool, logger *slog.Logger) *responseWriter {
|
||||
return &responseWriter{
|
||||
str: str,
|
||||
conn: conn,
|
||||
@@ -339,7 +339,7 @@ func (w *responseWriter) HTTPStream() *Stream {
|
||||
|
||||
func (w *responseWriter) wasStreamHijacked() bool { return w.hijacked }
|
||||
|
||||
func (w *responseWriter) Connection() Connection {
|
||||
func (w *responseWriter) Connection() *Conn {
|
||||
return w.conn
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user