aboutsummaryrefslogtreecommitdiff
path: root/weed/util/http/client/http_client_interface.go
blob: 7a2d433601ac820974d8d669a69ea6734ad16f65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package client

import (
	"io"
	"net/http"
	"net/url"
)

type HTTPClientInterface interface {
	Do(req *http.Request) (*http.Response, error)
	Get(url string) (resp *http.Response, err error)
	Post(url, contentType string, body io.Reader) (resp *http.Response, err error)
	PostForm(url string, data url.Values) (resp *http.Response, err error)
	Head(url string) (resp *http.Response, err error)
	CloseIdleConnections()
}