privatize the client, only expose Dial functions

This commit is contained in:
Marten Seemann
2017-02-22 12:21:33 +07:00
parent 48dee2708e
commit 96edca5219
7 changed files with 214 additions and 188 deletions

View File

@@ -11,6 +11,9 @@ import (
type mockQuicRoundTripper struct{}
func (m *mockQuicRoundTripper) Dial() error {
return nil
}
func (m *mockQuicRoundTripper) Do(req *http.Request) (*http.Response, error) {
return &http.Response{Request: req}, nil
}