(self)
return final_request_data
Get raw request data to send to server
Get raw request data to send to server
Get raw request data to send to server
def _get_raw_request(self):
        """Get raw request data to send to server"""

        final_request_data = ''

        if self.method is not None:
            ssdp_start_line = '{} * HTTP/1.1'.format(self.method)
        else:
            ssdp_start_line = 'HTTP/1.1 200 OK'

        final_request_data += '{}\r\n'.format(ssdp_start_line)

        for header, value in self.headers.items():
            final_request_data += '{}: {}\r\n'.format(header, value)

        final_request_data += '\r\n'

        return final_request_data
def _get_raw_request ( self ) : final_request_data = '' if self . method is not None : ssdp_start_line = '{} * HTTP/1.1' . format ( self . method ) else : ssdp_start_line = 'HTTP/1.1 200 OK' final_request_data += '{}\r\n' . format ( ssdp_start_line ) for header , value in self . headers . items ( ) : final_request_data += '{}: {}\r\n' . format ( header , value ) final_request_data += '\r\n' return final_request_data