MCPcopy
hub / github.com/encode/starlette / RedirectResponse

Class RedirectResponse

starlette/responses.py:204–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202
203
204class RedirectResponse(Response):
205 def __init__(
206 self,
207 url: str | URL,
208 status_code: int = 307,
209 headers: Mapping[str, str] | None = None,
210 background: BackgroundTask | None = None,
211 ) -> None:
212 super().__init__(content=b"", status_code=status_code, headers=headers, background=background)
213 self.headers["location"] = quote(str(url), safe=":/%#?=@[]!$&'()*+,;")
214
215
216Content = str | bytes | memoryview

Callers 8

get_responseMethod · 0.90
async_wrapperFunction · 0.90
sync_wrapperFunction · 0.90
appMethod · 0.90
__call__Method · 0.90
__call__Method · 0.90
appFunction · 0.90
appFunction · 0.90

Calls

no outgoing calls

Tested by 2

appFunction · 0.72
appFunction · 0.72