Next Generation HTTP for Python
Python Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
httpnext
test
.gitignore
.travis.yml
Changes.rst
LICENSE
Makefile
README.md
requirements.txt
setup.py
t.py
tox.ini

README.md

Warning: This is a work in progress. It's not ready for general use yet.

conn = httpnext.HTTPConnection("www.python.org")
conn.request("GET", "/index.html")
r1 = conn.getresponse()
print(r1.status, r1.reason)
while not r1.closed:
    print(r1.read(200))

Features

  • Early error support (HTTP/1.1 8.2.3 Expect: 100-continue)
  • Mid-stream error support
  • Chunked i/o, event support
  • Zero-length chunk keepalive
  • asyncio.IncompleReadError.expected is the total expected size, not the remaining size
  • HTTP parsing without establishing a connection
  • Incremental HTTP parsing
  • Raw socket control
  • backpressure tests
  • Perf regression tests
  • Defined extensibility strategy, mixins/plugins
  • pyOpenSSL integration