blob: 0be3ece4a5ff32acd963e64b253cd99039615873 (
plain)
1
2
3
4
5
6
7
|
def handle_headers(frame, request, response):
response.status = 200
response.headers.update([('Content-Type', 'text/plain')])
response.write_status_headers()
def handle_data(frame, request, response):
response.writer.write_data(frame.data)
|