def lineReceived(self, line):
while self._in_header:<EOL><INDENT>if line:<EOL><INDENT>self._headers.append(line)<EOL><DEDENT>else:<EOL><INDENT>http, status, message = self._headers[<NUM_LIT:0>].split("<STR_LIT:U+0020>", <NUM_LIT:2>)<EOL>status = int(status)<EOL>if status == <NUM_LIT:200>:<EOL><INDENT>self.factory.get_stream().connected()<EOL><DEDENT>else:<EOL><INDENT>self.factory.continueTrying = <NUM_LIT:0><EOL>self.transport.loseConnection()<EOL>self.factory.get_stream().disconnected(RuntimeError(status, message))<EOL>return<EOL><DEDENT>self._in_header = False<EOL><DEDENT>break<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>self._len_expected = int(line, <NUM_LIT:16>)<EOL>self.setRawMode()<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
Callback issued by twisted when new line arrives.

        Args:
            line (str): Incoming line