Commit 19be3642 authored by Sam Rushing's avatar Sam Rushing

put_handler,post_handler: mention that these are empty templates

status_handler: use set_deflate()
parent e6131bca
......@@ -11,6 +11,8 @@ from coro.httpd.http_date import build_http_date
W = sys.stderr.write
# these two aren't real handlers, they're more like templates
# to give you an idea how to write one.
class post_handler:
def match (self, request):
......@@ -51,6 +53,7 @@ class coro_status_handler:
def handle_request (self, request):
request['Content-Type'] = 'text/html'
request.set_deflate()
request.push ('<p>Listening on\r\n')
request.push (repr (request.server.addr))
request.push ('</p>\r\n')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment