chiark
/
gitweb
/
~mdw
/
hippotat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb113b2
)
server: new SourceResource (skeleton)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 4 Apr 2017 16:15:28 +0000
(17:15 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 4 Apr 2017 16:15:28 +0000
(17:15 +0100)
hippotatd
patch
|
blob
|
blame
|
history
diff --git
a/hippotatd
b/hippotatd
index 32d9a343763e6a41fb6baab2e773aeb211f18beb..3adf9b313f27a89f81fd122facc5dfb491f5364b 100755
(executable)
--- a/
hippotatd
+++ b/
hippotatd
@@
-202,8
+202,13
@@
class IphttpResource(NotStupidResource):
log_debug(DBG.HTTP, 'GET request')
return b'<html><body>hippotat</body></html>'
+class SourceResource(NotStupidResource):
+ def render_GET(self, request):
+ return b'<html><body>SUBDIR</body></html>'
+
def start_http():
resource = IphttpResource()
+ resource.putChild(b'source',SourceResource())
site = twisted.web.server.Site(resource)
for sa in c.saddrs:
ep = sa.make_endpoint()