WSGI middleware for recording requests/responses.
Project DescriptionRelease History Download Files
WSGI middleware for conditionally recording request/response information.
$ pip install wsgim-record ...
and use it:
import wsgim_record class RecordMiddleware(wsgim_record.RecordMiddleware) # tell what to record def record_input(self, environ) return True def record_errors(self, environ) return False def record_output(self, environ, status, headers, exc_info=None) return True # what was recorded def recorded(self, environ, input, errors, status, headers, output): ... wrapped = RecordMiddleware(app)