Versions in this module Expand all Collapse all v1 v1.0.1 Jun 8, 2020 v1.0.0 Jun 6, 2020 Changes in this version + var Gatherer prometheus.Gatherer = registry + var Registry prometheus.Registerer = registry + func InRange(code, a, b int) bool + func ParseHeaders(headers []string) http.Header + type Client struct + func New(conf Config) (*Client, error) + func (c *Client) Do(method string, rel *url.URL, headers http.Header, body io.Reader) (*Response, error) + type Config struct + Headers http.Header + IdleConnTimeout time.Duration + InsecureSkipVerify bool + MaxConnsPerHost int + MaxIdleConns int + MaxIdleConnsPerHost int + Timeout time.Duration + URL string + type Request struct + Body io.Reader + Header http.Header + Method string + Response *Response + URL *url.URL + func NewRequest(method, rawurl string, header http.Header, body io.Reader, ...) (*Request, error) + type Response struct + Body []byte + ContentLength int64 + Duration time.Duration + Header http.Header + Proto string + ProtoMajor int + ProtoMinor int + Request *http.Request + Status string + StatusCode int + Trailer http.Header + TransferEncoding []string + Uncompressed bool