Generate smart defaults for some values at some places
[fwx] / main.py
diff --git a/main.py b/main.py
index 2fa7191..d7ea725 100644 (file)
--- a/main.py
+++ b/main.py
@@ -2,9 +2,8 @@ import phial
 
 def handler(request):
     return phial.Response(
-        status='200 OK',
-        headers=[('Content-Type', 'text/plain')],
-        content=[b'Hello, world\n'],
+        content_type='text/plain',
+        content='Hello, world\n',
     )
 
 app = phial.App(handler)