New Python HTTP client library

Starting from version 1.9 Mercurial uses new (Python, obviously) HTTP client library. It turns out, the library was imported in May from py-nonblocking-http project. The author is Googler Augie Fackler (durin42), also the author of great hgsubversion Mercurial plugin.

From the library docstring:

Improved HTTP/1.1 client library

This library contains an HTTPConnection which is similar to the one in httplib, but has several additional features:

  • supports keepalives natively
  • uses select() to block for incoming data
  • notices when the server responds early to a request
  • implements ssl inline instead of in a different class

Well, a new Python HTTP client. Nice!

39 views and 0 responses