-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