Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 439 Bytes

tornado-example.rst

File metadata and controls

16 lines (11 loc) · 439 Bytes

Tornado Example Server

This example is a basic HTTP/2 server written using the Tornado asynchronous networking library.

The server returns the request headers as a JSON document to the caller, just like the example from the :doc:`basic-usage` document.

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