'The request headers are available on the request object passed to a
distributed resource\'s C{render} method.'

def test_requestHeaders(self):

    requestHeaders = {}
    class ReportRequestHeaders(resource.Resource, ):
        def render(self, request):
            requestHeaders.update(dict(request.requestHeaders.getAllRawHeaders()))
            return ''
    request = self._requestTest(ReportRequestHeaders(), headers=Headers({'foo': ['bar']}))
    def cbRequested(result):
        self.assertEqual(requestHeaders['Foo'], ['bar'])
    request.addCallback(cbRequested)
    return request
