'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.
NOTE: This function is a direct copy of
C{twisted.web.http.Request.getAllRawHeaders}.'

def getAllHeaders(self):

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