Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 544 Bytes

curio-example.rst

File metadata and controls

17 lines (12 loc) · 544 Bytes

Curio Example Server

This example is a basic HTTP/2 server written using curio, David Beazley's example of how to build a concurrent networking framework using Python 3.5's new async/await syntax.

This example is notable for demonstrating the correct use of HTTP/2 flow control with Hyper-h2. It is also a good example of the brand new syntax.

.. literalinclude:: ../../examples/curio/curio-server.py
   :language: python
   :linenos:
   :encoding: utf-8