Codebase list golang-github-go-kit-kit / 4d487a8
transport/http: fix comment on NewClient Peter Bourgon 8 years ago
1 changed file(s) with 8 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2121 bufferedStream bool
2222 }
2323
24 // NewClient returns a
25 func NewClient(method string, tgt *url.URL, enc EncodeRequestFunc, dec DecodeResponseFunc, options ...ClientOption) *Client {
24 // NewClient constructs a usable Client for a single remote endpoint.
25 func NewClient(
26 method string,
27 tgt *url.URL,
28 enc EncodeRequestFunc,
29 dec DecodeResponseFunc,
30 options ...ClientOption,
31 ) *Client {
2632 c := &Client{
2733 client: http.DefaultClient,
2834 method: method,