X-Git-Url: https://code.kerkeslager.com/?a=blobdiff_plain;f=main.py;h=f0bc2bc2628f50165b7dd543ebda6d3d181f8fe2;hb=f4de177de239a52c4780ca49a03935e36e262399;hp=2fa7191e9406d128546dfe2f8ac8cfd85648ce26;hpb=8b491e50b5a554643a068f66f7257d38c6ac7e7c;p=fwx diff --git a/main.py b/main.py index 2fa7191..f0bc2bc 100644 --- a/main.py +++ b/main.py @@ -1,10 +1,8 @@ import phial def handler(request): - return phial.Response( - status='200 OK', - headers=[('Content-Type', 'text/plain')], - content=[b'Hello, world\n'], + return phial.TextResponse( + content='Hello, world\n', ) app = phial.App(handler)