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