Buckets:

download
raw
509 Bytes
from fastapi.responses import RedirectResponse
from starlette.background import BackgroundTask
from starlette.datastructures import URL
class HXRedirectResponse(RedirectResponse):
def __init__(
self,
url: str | URL,
status_code: int = 200,
headers: dict[str, str] | None = None,
background: BackgroundTask | None = None,
) -> None:
super().__init__(url, status_code, headers, background)
self.headers["HX-Redirect"] = self.headers["location"]

Xet Storage Details

Size:
509 Bytes
·
Xet hash:
0414836fce8f28c5c3fabb5fce00779e067714347928b854bcc312ec0d931153

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.