Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)