Classes | |
| class | HomeAssistantView |
Functions | |
| Callable[[web.Request], Awaitable[web.StreamResponse]] | request_handler_factory (HomeAssistant hass, HomeAssistantView view, Callable handler) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| AllowCorsType | |
| default | |
| Final | |
| KEY_ALLOW_ALL_CORS = AppKey[AllowCorsType]("allow_all_cors") | |
| KEY_ALLOW_CONFIGURED_CORS = AppKey[AllowCorsType]("allow_configured_cors") | |
Helper to track the current http request.
| Callable[[web.Request], Awaitable[web.StreamResponse]] homeassistant.helpers.http.request_handler_factory | ( | HomeAssistant | hass, |
| HomeAssistantView | view, | ||
| Callable | handler | ||
| ) |
|
private |
| homeassistant.helpers.http.KEY_ALLOW_ALL_CORS = AppKey[AllowCorsType]("allow_all_cors") |
| homeassistant.helpers.http.KEY_ALLOW_CONFIGURED_CORS = AppKey[AllowCorsType]("allow_configured_cors") |