def received_headers(self): """ Transform the L{Headers}-style C{requestHeaders} attribute into a deprecated C{dict}-style C{received_headers} attribute. """ self._warnHeaders("received_headers", "requestHeaders") return appserver._DictHeaders(self.requestHeaders)
def headers(self): """ Transform the L{Headers}-style C{responseHeaders} attribute into a deprecated C{dict}-style C{headers} attribute. """ self._warnHeaders("headers", "responseHeaders") return appserver._DictHeaders(self.responseHeaders)