An http client package for Go.
Pull request Compare This branch is even with kr:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
License
Makefile
Readme.md
cache.go
cache_test.go
client.go
conn.go
httpc.go
httpc_test.go
pool.go
pool_test.go
store_file.go
store_file_test.go
store_memory.go
store_memory_test.go

Readme.md

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.