Documentation ¶ Index ¶ func NewSimpleHttpClient(cnf ...*Config) *simpleHttpClient type Config type HttpClient type Response Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewSimpleHttpClient ¶ func NewSimpleHttpClient(cnf ...*Config) *simpleHttpClient Types ¶ type Config ¶ type Config struct { Timeout time.Duration Verbose bool Logger *log.Logger // stdout when nil, verbose should be true Client *http.Client // if provided, we use this client } type HttpClient ¶ type HttpClient interface { Do(*http.Request) (*Response, []byte, error) } type Response ¶ type Response struct { *http.Response } Source Files ¶ View all Source files simpleclient.go Click to show internal directories. Click to hide internal directories.