def get_app(self):
class ChunkedWithContentLength(RequestHandler):
def get(self):
# Add an invalid Transfer-Encoding to the response
self.set_header('Transfer-Encoding', 'chunked')
self.write("Hello world")
return Application([('/chunkwithcl', ChunkedWithContentLength)])
simple_httpclient_test.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录