transport/http: fix comment on NewClient
Peter Bourgon
8 years ago
21 | 21 | bufferedStream bool |
22 | 22 | } |
23 | 23 | |
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 { | |
26 | 32 | c := &Client{ |
27 | 33 | client: http.DefaultClient, |
28 | 34 | method: method, |