Skip to content

kr/httpc.go

Repository files navigation

httpc.go

An http client library.

This library builds on the http library included with Go, and has all the same features. In addition, it automates connection pooling, global and per-domain connection limits, request priorities, caching, etags, and more.

(Note, some of this is not yet implemented.)

The global "connection" limit actually limits pending requests. An idle connection with no outstanding requests does not count toward this limit.

Because of buggy proxies and servers (especially IIS), this library does not pipeline requests.

Example

resp, err := httpc.Get(nil, "http://example.com/")

Acknowledgements

Some ideas were derived from httplib2. Soon, some code and tests will be, too.

About

An http client package for Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages