Removed http_server from HomeServer. Updated unit tests to use either resource_for_federation or resource_for_client depending on what is being tested.

This commit is contained in:
Kegan Dougal 2014-08-14 10:18:54 +01:00
parent 29aa13f0d4
commit 9a1638ed21
12 changed files with 21 additions and 30 deletions

View file

@ -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