summaryrefslogtreecommitdiff
path: root/src/home/http/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/home/http/http.py')
-rw-r--r--src/home/http/http.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/home/http/http.py b/src/home/http/http.py
index 8e9d3b2..76197d2 100644
--- a/src/home/http/http.py
+++ b/src/home/http/http.py
@@ -77,6 +77,12 @@ class HTTPServer:
def post(self, path, handler):
self._add_route('post', path, handler)
+ def put(self, path, handler):
+ self._add_route('put', path, handler)
+
+ def delete(self, path, handler):
+ self._add_route('delete', path, handler)
+
def run(self, event_loop=None, handle_signals=True):
if not event_loop:
event_loop = asyncio.get_event_loop()