Skip to content

Commit

Permalink
add LocalAddr and RemoteAddr functions to http3.StreamCreator (#3384)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Apr 16, 2022
1 parent 21160a0 commit 6d4a694
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions http3/body.go
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 6d4a694

Please sign in to comment.