Ejemplo n.º 1
0
 def decode(self, raw_request, request):
     """Overridden to add Twisted's request object onto the packet."""
     decoded = HttpChannel.decode(self, raw_request)
     setattr(decoded, self.TWISTED_REQUEST, request)
     return decoded
Ejemplo n.º 2
0
 def decode(self, request_handler):
     """Overridden to add Tornado's request object onto the packet."""
     decoded = HttpChannel.decode(self, request_handler.request.body)
     setattr(decoded, self.TORNADO_REQUEST, request_handler)
     return decoded
Ejemplo n.º 3
0
 def decode(self, request_handler):
     """Overridden to add Tornado's request object onto the packet."""
     decoded = HttpChannel.decode(self, request_handler.request.body)
     setattr(decoded, self.TORNADO_REQUEST, request_handler)
     return decoded
Ejemplo n.º 4
0
 def decode(self, raw_request, request):
     """Overridden to add Twisted's request object onto the packet."""
     decoded = HttpChannel.decode(self, raw_request)
     setattr(decoded, self.TWISTED_REQUEST, request)
     return decoded