def add_ClientData(self):
        """
        The user may type in:
        GET / HTTP/1.1\r\nHost: testserver.com\r\n\r\n
        Special characters are handled so that it becomes a valid HTTP request.
        """
        if not self.data_to_send:
            data = six.moves.input().replace('\\r', '\r').replace('\\n', '\n').encode()  # noqa: E501
        else:
            data = self.data_to_send.pop()
        if data == b"quit":
            return
        if self.linebreak:
            data += b"\n"
        self.add_record()
        self.add_msg(TLSApplicationData(data=data))
        raise self.ADDED_CLIENTDATA()
def add_ClientData ( self ) : if not self . data_to_send : data = six . moves . input ( ) . replace ( '\\r' , '\r' ) . replace ( '\\n' , '\n' ) . encode ( ) else : data = self . data_to_send . pop ( ) if data == b"quit" : return if self . linebreak : data += b"\n" self . add_record ( ) self . add_msg ( TLSApplicationData ( data = data ) ) raise self . ADDED_CLIENTDATA ( )
The user may type in:
        GET / HTTP/1.1\r\nHost: testserver.com\r\n\r\n
        Special characters are handled so that it becomes a valid HTTP request.