synapse/tests/federation/transport/server
Sean Quah 9d8e380d2e
Respect the `@cancellable` flag for `RestServlet`s and `BaseFederationServlet`s (#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
..
__init__.py Respect the `@cancellable` flag for `RestServlet`s and `BaseFederationServlet`s (#12699) 2022-05-11 12:25:13 +01:00
test__base.py Respect the `@cancellable` flag for `RestServlet`s and `BaseFederationServlet`s (#12699) 2022-05-11 12:25:13 +01:00