WSGI middleware:  debugging utilities