MCPcopy
hub / github.com/encode/httpx / redirect_301

Function redirect_301

tests/conftest.py:178–182  ·  view source on GitHub ↗
(scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

176
177
178async def redirect_301(scope: Scope, receive: Receive, send: Send) -> None:
179 await send(
180 {"type": "http.response.start", "status": 301, "headers": [[b"location", b"/"]]}
181 )
182 await send({"type": "http.response.body"})
183
184
185@pytest.fixture(scope="session")

Callers 1

appFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected