Beispiel #1
0
    def __init__(self, mode="request"):
        super(HTTPParser, self).__init__()
        self.mode = mode

        self.charqueue = CharacterFIFO()
        self.lines = []
        self.readbuffer = ""
Beispiel #2
0
 def __init__(self, chunksize=1048576, nodelay=False):
     super(Chunkifier, self).__init__()
     self.forwardqueue = CharacterFIFO()
     self.chunksize = chunksize
     self.nodelay = nodelay