def __init__(self, parent):
        """
        Construct HTTP parser.

        Parameters:
            parent (growler.HTTPResponder): The 'parent' responder which
                will forward client data to the parser, and the parser will
                send parsed data back to this object.
        """
        self.parent = parent
        self._buffer = bytearray()

        self.encoding = 'utf-8'
        self.headers = dict()

        # create the parser generator 'object'
        self._http_parser = self._http_parser()
        self._http_parser.send(None)
def __init__ ( self , parent ) : self . parent = parent self . _buffer = bytearray ( ) self . encoding = 'utf-8' self . headers = dict ( ) self . _http_parser = self . _http_parser ( ) self . _http_parser . send ( None )
Construct HTTP parser.

        Parameters:
            parent (growler.HTTPResponder): The 'parent' responder which
                will forward client data to the parser, and the parser will
                send parsed data back to this object.