Add type assertion for client.HttpClient.
This commit is contained in:
parent
030c9c12ee
commit
cd9f2cabb7
@ -12,6 +12,8 @@ import (
|
||||
"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.
|
||||
type HttpClient interface {
|
||||
Do(req *http.Request) (*http.Response, error)
|
||||
|
Loading…
Reference in New Issue
Block a user