summary refs log tree commit diff
path: root/scripts-dev
diff options
context:
space:
mode:
authorSean Quah <seanq@element.io>2022-04-28 15:59:08 +0100
committerSean Quah <seanq@element.io>2022-04-28 19:28:00 +0100
commit2326bbf0999e99b57dafcebd966dd9bd942c52a2 (patch)
tree594388a01de82a747ba5e3691c25e5bbe7d78a95 /scripts-dev
parentRespect the `@cancellable` flag for `DirectServe{Html,Json}Resource`s (diff)
downloadsynapse-2326bbf0999e99b57dafcebd966dd9bd942c52a2.tar.xz
Respect the `@cancellable` flag for `RestServlet`s and `BaseFederationServlet`s
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>
Diffstat (limited to 'scripts-dev')
0 files changed, 0 insertions, 0 deletions