'Return dictionary mapping the names of all received headers to the last
value received for each.
Since this method does not return all header information,
C{self.requestHeaders.getAllRawHeaders()} may be preferred.'

def getAllHeaders(self):

    headers = {}
    for (k, v) in self.requestHeaders.getAllRawHeaders():
        headers[k.lower()] = v[(-1)]
    return headers
