httpnext

FIXME


License
Apache-2.0
Install
pip install httpnext==0.0.1

Documentation

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