File: tornado-example.rst

package info (click to toggle)
python-h2 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,656 kB
  • sloc: python: 11,164; makefile: 14; sh: 12
file content (16 lines) | stat: -rw-r--r-- 439 bytes parent folder | download | duplicates (38)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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


.. _Tornado: http://www.tornadoweb.org/