projects
/
fwx
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add some more response types
[fwx]
/
main.py
diff --git
a/main.py
b/main.py
index
2fa7191
..
f0bc2bc
100644
(file)
--- 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)