MCPcopy
hub / github.com/uber/aresdb / NewControllerHTTPClient

Function NewControllerHTTPClient

controller/client/controller.go:59–67  ·  view source on GitHub ↗

NewControllerHTTPClient returns new ControllerHTTPClient

(address string, timeoutSec time.Duration, headers http.Header)

Source from the content-addressed store, hash-verified

57
58// NewControllerHTTPClient returns new ControllerHTTPClient
59func NewControllerHTTPClient(address string, timeoutSec time.Duration, headers http.Header) *ControllerHTTPClient {
60 return &ControllerHTTPClient{
61 c: &http.Client{
62 Timeout: timeoutSec,
63 },
64 address: address,
65 headers: headers,
66 }
67}
68
69// buildRequest builds an http.Request with headers.
70func (c *ControllerHTTPClient) buildRequest(method, path string, body io.Reader) (req *http.Request, err error) {

Callers 1

controller_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected