"""Strings for Event Stream Requests.""" from __future__ import annotations # Subscribe Message SUB_MSG = { "head": """POST /services HTTP/1.1 Host: {addr}:{port}{webroot} Authorization: {auth} Content-Length: {length} Content-Type: text/xml; charset="utf-8" SOAPAction: urn:udi-com:device:X_Insteon_Lighting_Service:1#Subscribe\r \r """, "body": """ REUSE_SOCKET infinite \r """, } # Unsubscribe Message UNSUB_MSG = { "head": """POST /services HTTP/1.1 Host: {addr}:{port}{webroot} Authorization: {auth} Content-Length: {length} Content-Type: text/xml; charset="utf-8" SOAPAction: urn:udi-com:device:X_Insteon_Lighting_Service:1#Unsubscribe\r \r """, "body": """ {sid} \r """, } # Resubscribe Message RESUB_MSG = { "head": """POST /services HTTP/1.1 Host: {addr}:{port}{webroot} Authorization: {auth} Content-Length: {length} Content-Type: text/xml; charset="utf-8" SOAPAction: urn:udi-com:device:X_Insteon_Lighting_Service:1#Subscribe\r \r """, "body": """ REUSE_SOCKET infinite {sid} \r """, }