Skip to content

Commit

Permalink
http3: expose a SingleDestinationRoundTripper (#4424)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Apr 11, 2024
1 parent 9efc324 commit da410a7
Show file tree
Hide file tree
Showing 8 changed files with 724 additions and 835 deletions.
249 changes: 73 additions & 176 deletions http3/client.go

Large diffs are not rendered by default.

318 changes: 89 additions & 229 deletions http3/client_test.go

Large diffs are not rendered by default.

195 changes: 0 additions & 195 deletions http3/mock_roundtripcloser_test.go

This file was deleted.

119 changes: 119 additions & 0 deletions http3/mock_singleroundtripper_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions http3/mockgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package http3

//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package http3 -destination mock_roundtripcloser_test.go github.com/quic-go/quic-go/http3 RoundTripCloser"
type RoundTripCloser = roundTripCloser
//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package http3 -destination mock_singleroundtripper_test.go github.com/quic-go/quic-go/http3 SingleRoundTripper"
type SingleRoundTripper = singleRoundTripper

//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -package http3 -destination mock_quic_early_listener_test.go github.com/quic-go/quic-go/http3 QUICEarlyListener"
Loading

0 comments on commit da410a7

Please sign in to comment.