Add type assertion for client.HttpClient.

This commit is contained in:
John Beisley 2022-03-26 11:19:07 +00:00
parent 030c9c12ee
commit cd9f2cabb7

View File

@ -12,6 +12,8 @@ import (
"github.com/huin/goupnp/v2alpha/soap/envelope" "github.com/huin/goupnp/v2alpha/soap/envelope"
) )
var _ HttpClient = &http.Client{}
// HttpClient defines the interface required of an HTTP client. It is a subset of *http.Client. // HttpClient defines the interface required of an HTTP client. It is a subset of *http.Client.
type HttpClient interface { type HttpClient interface {
Do(req *http.Request) (*http.Response, error) Do(req *http.Request) (*http.Response, error)