projects
/
fwx
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the charset
[fwx]
/
main.py
diff --git
a/main.py
b/main.py
index
2fa7191
..
d2d758a
100644
(file)
--- a/
main.py
+++ b/
main.py
@@
-1,13
+1,11
@@
-import
phial
+import
fwx
def handler(request):
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
if __name__ == '__main__':
from twisted.internet import reactor