(self, **headers)
Example M-SEARCH header:
        ------------------------------------------------------------------------
        M-SEARCH * HTTP/1.1          SSDP method for search requests
        HOST: 239.255.255.250:1900   SSDP multicast address and port (REQUIRED)
        MAN: "ssdp:discover"         HTTP Extension Framework scope (REQUIRED)
        MX: 2                        Maximum wait time in seconds (REQUIRED)
        ST: upnp:rootdevice          Search target (REQUIRED)
        ------------------------------------------------------------------------
Example M-SEARCH header:
        ------------------------------------------------------------------------
        M-SEARCH * HTTP/1.1          SSDP method for search requests
        HOST: 239.255.255.250:1900   SSDP multicast address and port (REQUIRED)
        MAN: "ssdp:discover"         HTTP Extension Framework scope (REQUIRED)
        MX: 2                        Maximum wait time in seconds (REQUIRED)
        ST: upnp:rootdevice          Search target (REQUIRED)
        ------------------------------------------------------------------------
Example M - SEARCH header : ------------------------------------------------------------------------ M - SEARCH * HTTP / 1 . 1 SSDP method for search requests HOST : 239 . 255 . 255 . 250 : 1900 SSDP multicast address and port ( REQUIRED ) MAN : ssdp : discover HTTP Extension Framework scope ( REQUIRED ) MX : 2 Maximum wait time in seconds ( REQUIRED ) ST : upnp : rootdevice Search target ( REQUIRED ) ------------------------------------------------------------------------
def __init__(self, **headers):
        """
        Example M-SEARCH header:
        ------------------------------------------------------------------------
        M-SEARCH * HTTP/1.1          SSDP method for search requests
        HOST: 239.255.255.250:1900   SSDP multicast address and port (REQUIRED)
        MAN: "ssdp:discover"         HTTP Extension Framework scope (REQUIRED)
        MX: 2                        Maximum wait time in seconds (REQUIRED)
        ST: upnp:rootdevice          Search target (REQUIRED)
        ------------------------------------------------------------------------
        """
        self.headers = {}
        self.set_headers(**headers)

        self._available_methods = ['M-SEARCH']

        self.method = None
        self.host = self.headers.get('HOST')
        self.man = self.headers.get('MAN')
        self.mx = self.headers.get('MX')
        self.st = self.headers.get('ST')
def __init__ ( self , * * headers ) : self . headers = { } self . set_headers ( * * headers ) self . _available_methods = [ 'M-SEARCH' ] self . method = None self . host = self . headers . get ( 'HOST' ) self . man = self . headers . get ( 'MAN' ) self . mx = self . headers . get ( 'MX' ) self . st = self . headers . get ( 'ST' )