MCPcopy Create free account
hub / github.com/Vinyzu/Botright / handle_redirect

Method handle_redirect

tests/server.py:189–192  ·  view source on GitHub ↗
(request: http.Request)

Source from the content-addressed store, hash-verified

187
188 def set_redirect(self, from_: str, to: str) -> None:
189 def handle_redirect(request: http.Request) -> None:
190 request.setResponseCode(HTTPStatus.FOUND)
191 request.setHeader("location", to)
192 request.finish()
193
194 self.set_route(from_, handle_redirect)
195

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected