Source File
httpclient.go
Belonging Package
go.pact.im/x/httpclient
// Package httpclient defines a mockable http.Client interface.
package httpclient
import (
)
// Client is an interface describing the methods required from HTTP client.
// It is satisfied by *http.Client type.
type Client interface {
// Do sends an HTTP request and returns an HTTP response.
Do(req *http.Request) (*http.Response, error)
}
// DefaultClient returns http.DefaultClient.
func () Client {
return http.DefaultClient
}
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)