self,
content: typing.Any = None,
status_code: int = 200,
- headers: dict = None,
+ headers: typing.Mapping[str, str] = None,
media_type: str = None,
background: BackgroundTask = None,
) -> None:
self,
url: typing.Union[str, URL],
status_code: int = 307,
- headers: dict = None,
+ headers: typing.Mapping[str, str] = None,
background: BackgroundTask = None,
) -> None:
super().__init__(
self,
content: typing.Any,
status_code: int = 200,
- headers: dict = None,
+ headers: typing.Mapping[str, str] = None,
media_type: str = None,
background: BackgroundTask = None,
) -> None:
self,
path: typing.Union[str, "os.PathLike[str]"],
status_code: int = 200,
- headers: dict = None,
+ headers: typing.Mapping[str, str] = None,
media_type: str = None,
background: BackgroundTask = None,
filename: str = None,
template: typing.Any,
context: dict,
status_code: int = 200,
- headers: dict = None,
+ headers: typing.Mapping[str, str] = None,
media_type: str = None,
background: BackgroundTask = None,
):
name: str,
context: dict,
status_code: int = 200,
- headers: dict = None,
+ headers: typing.Mapping[str, str] = None,
media_type: str = None,
background: BackgroundTask = None,
) -> _TemplateResponse: