eventlet-example.rst (696B)
1 Eventlet Example Server 2 ======================= 3 4 This example is a basic HTTP/2 server written using the `eventlet`_ concurrent 5 networking framework. This example is notable for demonstrating how to 6 configure `PyOpenSSL`_, which `eventlet`_ uses for its TLS layer. 7 8 In terms of HTTP/2 functionality, this example is very simple: it returns the 9 request headers as a JSON document to the caller. It does not obey HTTP/2 flow 10 control, which is a flaw, but it is otherwise functional. 11 12 .. literalinclude:: ../../examples/eventlet/eventlet-server.py 13 :language: python 14 :linenos: 15 :encoding: utf-8 16 17 18 .. _eventlet: http://eventlet.net/ 19 .. _PyOpenSSL: https://pyopenssl.readthedocs.org/en/stable/