Return 405 for DELETE; the spec allows refusing session teardown.
()
| 185 | return resp |
| 186 | |
| 187 | def _handle_delete(): |
| 188 | """Return 405 for DELETE; the spec allows refusing session teardown.""" |
| 189 | return app.backend.make_response( |
| 190 | json.dumps({"error": "Method not allowed"}), |
| 191 | content_type="application/json", |
| 192 | status=405, |
| 193 | ) |
| 194 | |
| 195 | # -- Register routes ----------------------------------------------------- |
| 196 | # Separate registrations per HTTP method so the handler never needs to |
nothing calls this directly
no test coverage detected
searching dependent graphs…