Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 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)