Skip to content

Commit

Permalink
add LocalAddr and RemoteAddr functions to http3.StreamCreator (quic-g…
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann authored and nmldiegues committed Jun 6, 2022
1 parent be83942 commit e6a794c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions http3/body.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"io"
"net"

"github.com/lucas-clemente/quic-go"
)
Expand All @@ -13,6 +14,8 @@ type StreamCreator interface {
OpenStreamSync(context.Context) (quic.Stream, error)
OpenUniStream() (quic.SendStream, error)
OpenUniStreamSync(context.Context) (quic.SendStream, error)
LocalAddr() net.Addr
RemoteAddr() net.Addr
}

var _ StreamCreator = quic.Connection(nil)
Expand Down

0 comments on commit e6a794c

Please sign in to comment.