forked-synapse/tests/http
Sean Quah 9d8e380d2e
Respect the @cancellable flag for RestServlets and BaseFederationServlets (#12699)
Both `RestServlet`s and `BaseFederationServlet`s register their handlers
with `HttpServer.register_paths` / `JsonResource.register_paths`. Update
`JsonResource` to respect the `@cancellable` flag on handlers registered
in this way.

Although `ReplicationEndpoint` also registers itself using
`register_paths`, it does not pass the handler method that would have the
`@cancellable` flag directly, and so needs separate handling.

Signed-off-by: Sean Quah <seanq@element.io>
2022-05-11 12:25:13 +01:00
..
federation Replace assertEquals and friends with non-deprecated versions. (#12092) 2022-02-28 07:12:29 -05:00
server Add helper class for testing request cancellation (#12630) 2022-05-10 14:06:56 +01:00
__init__.py
ca.crt
ca.key
server.key
test_additional_resource.py
test_client.py
test_endpoint.py
test_fedclient.py
test_proxyagent.py
test_servlet.py Respect the @cancellable flag for RestServlets and BaseFederationServlets (#12699) 2022-05-11 12:25:13 +01:00
test_simple_client.py
test_site.py