summary refs log tree commit diff
path: root/synapse/http
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-08-14 10:18:54 +0100
committerKegan Dougal <kegan@matrix.org>2014-08-14 10:18:54 +0100
commit9a1638ed21ea716b999853c8d63c30073e677c46 (patch)
tree60c79cacb7e6b0df578141fc6b4c1a111f983686 /synapse/http
parentMake federation use resource_for_federation as well. (diff)
downloadsynapse-9a1638ed21ea716b999853c8d63c30073e677c46.tar.xz
Removed http_server from HomeServer. Updated unit tests to use either resource_for_federation or resource_for_client depending on what is being tested.
Diffstat (limited to 'synapse/http')
-rw-r--r--synapse/http/server.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py
index 32dfd836cd..87b4fc8a5f 100644
--- a/synapse/http/server.py
+++ b/synapse/http/server.py
@@ -52,10 +52,9 @@ class HttpServer(object):
         pass
 
 
-# The actual HTTP server impl, using twisted http server
-class TwistedHttpServer(HttpServer, resource.Resource):
-    """ This wraps the twisted HTTP server, and triggers the correct callbacks
-    on the transport_layer.
+class JsonResource(HttpServer, resource.Resource):
+    """ This implements the HttpServer interface and provides JSON support for
+    Resources.
 
     Register callbacks via register_path()
     """
@@ -185,8 +184,3 @@ def respond_with_json_bytes(request, code, json_bytes, send_cors=False):
     request.write(json_bytes)
     request.finish()
     return NOT_DONE_YET
-
-
-# FIXME: Temp, just so the new name can be used without breaking the world.
-class JsonResource(TwistedHttpServer):
-    pass
\ No newline at end of file