Classes | |
| class | HassIOIngress |
Functions | |
| str | _forwarded_for_header (str|None forward_for, str peer_name) |
| CIMultiDict|dict[str, str] | _init_header (web.Request request, str token) |
| bool | _is_websocket (web.Request request) |
| dict[str, str] | _response_header (aiohttp.ClientResponse response) |
| None | _websocket_forward (web.WebSocketResponse|ClientWebSocketResponse ws_from, web.WebSocketResponse|ClientWebSocketResponse ws_to) |
| None | async_setup_ingress_view (HomeAssistant hass, str host) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| dictionary | INIT_HEADERS_FILTER |
| int | MAX_SIMPLE_RESPONSE_SIZE = 4194000 |
| int | MIN_COMPRESSED_SIZE = 128 |
| dictionary | RESPONSE_HEADERS_FILTER |
Hass.io Add-on ingress service.
|
private |
Create X-Forwarded-For header.
Definition at line 229 of file ingress.py.
|
private |
Create initial header.
Definition at line 235 of file ingress.py.
|
private |
Return True if request is a websocket.
Definition at line 278 of file ingress.py.
|
private |
Create response header.
Definition at line 269 of file ingress.py.
|
private |
Handle websocket message directly.
Definition at line 287 of file ingress.py.
| None homeassistant.components.hassio.ingress.async_setup_ingress_view | ( | HomeAssistant | hass, |
| str | host | ||
| ) |
Auth setup.
Definition at line 51 of file ingress.py.
|
private |
Definition at line 27 of file ingress.py.
| dictionary homeassistant.components.hassio.ingress.INIT_HEADERS_FILTER |
Definition at line 29 of file ingress.py.
| int homeassistant.components.hassio.ingress.MAX_SIMPLE_RESPONSE_SIZE = 4194000 |
Definition at line 47 of file ingress.py.
| int homeassistant.components.hassio.ingress.MIN_COMPRESSED_SIZE = 128 |
Definition at line 46 of file ingress.py.
| dictionary homeassistant.components.hassio.ingress.RESPONSE_HEADERS_FILTER |
Definition at line 39 of file ingress.py.