(self)
return super(MimicLoggingRequest, self).process()
Log the incoming response before calling the superclass's
        :obj:`process`.
Log the incoming response before calling the superclass's
        :obj:`process`.
Log the incoming response before calling the superclass s : obj : process .
def process(self):
        """
        Log the incoming response before calling the superclass's
        :obj:`process`.
        """
        content = self.content.read()
        self.content.seek(0)
        log("Received request: {method} {url}\n"
            "Headers: {headers}\n"
            "{body}",
            method=self.method.decode("utf-8"), url=self.uri.decode("utf-8"),
            headers=json.dumps(
                {k.decode("utf-8"): [vv.decode("utf-8") for vv in v]
                 for (k, v) in self.requestHeaders.getAllRawHeaders()}
            ),
            body=("\n" + content.decode("utf-8") + "\n" if content else ""))
        return super(MimicLoggingRequest, self).process()
def process ( self ) : content = self . content . read ( ) self . content . seek ( 0 ) log ( "Received request: {method} {url}\n" "Headers: {headers}\n" "{body}" , method = self . method . decode ( "utf-8" ) , url = self . uri . decode ( "utf-8" ) , headers = json . dumps ( { k . decode ( "utf-8" ) : [ vv . decode ( "utf-8" ) for vv in v ] for ( k , v ) in self . requestHeaders . getAllRawHeaders ( ) } ) , body = ( "\n" + content . decode ( "utf-8" ) + "\n" if content else "" ) ) return super ( MimicLoggingRequest , self ) . process ( )