facebook/tornado — pull request #402 by kachayev (2011-11-23 18:12:47+00:00)
Title: Netutil base protocol implementation

If we will use ``netutil.TCPServer`` for implementing some functionality, we will have to use inheritance and write duplicated code more and more times... (example of such application you can find here https://gist.github.com/1387470).

The keynote here, that there are many situation when we don't want to create server class (inherited from ``netutil.TCPServer``), we just want to use custom handler as wrapper for incoming ``IOStream``. We can easily avoid this problem, code example in docstring.

It also possible to implement this approach for ``httpserver.HTTPConnection`` (request_callback, no_keep_alive and xheaders can be read from server param). But I don't know if it will bring many benefits (only one - standard approach).