Should work like this:
@debug
def handle(self, req):
...
and it will dump all the incoming request data as well as the outgoing response data.
Maybe it would be better to have a family of decorators, like this:
@logrequest
@logresponse
def handle(self, req):
and so forth.
Should work like this:
and it will dump all the incoming request data as well as the outgoing response data.
Maybe it would be better to have a family of decorators, like this:
and so forth.