go-httpclient
go-httpclient copied to clipboard
Advanced HTTP client for golang
if you add OPT_AFTER_REQUEST_FUNC ,that is good
Hi, This library reminds me of how much I love Python's [requests][requests-lib]. One thing that I miss is a utility to pass a `(username, password)` pair easily. Something around these...
how would you do a keep alive in concurrency environment? I have a worker pool that request alltime the same url (with differend data).
usage example ``` c := NewHttpClient() res, err := c.Get("http://httpbin.org/user-agent") if err != nil { t.Error(err) } type Result struct { UserAgent string `json:"user-agent"` } result := &Result{} err =...
default Transport MaxIdleConnsPerHost use DefaultMaxIdleConnsPerHost = 2,many requests are timeout if not set bigger value.
Dial is deprecated,use DialContext instead