Logo Search packages:      
Sourcecode: tcpwatch-httpproxy version File versions  Download package

def tcpwatch::HTTPStreamParser::get_header_lines (   self  ) 

Splits the header into lines, putting multi-line headers together.

Definition at line 948 of file tcpwatch.py.

00948                               :
        """Splits the header into lines, putting multi-line headers together.
        """
        r = []
        lines = self.header.split('\n')
        for line in lines:
            if line.endswith('\r'):
                line = line[:-1]
            if line and line[0] in ' \t':
                r[-1] = r[-1] + line[1:]
            else:
                r.append(line)
        return r



class HTTPConnectionSplitter:


Generated by  Doxygen 1.6.0   Back to index