An instance of this class is emitted as an event whenever any repoze.bfg view returns a response. The instance has an attribute, response, which is the response object returned by the view. This class implements the repoze.bfg.interfaces.INewResponse interface.
Note
Postprocessing a response is usually better handled in a WSGI middleware component than in subscriber code that is called by a repoze.bfg.interfaces.INewResponse event. The repoze.bfg.interfaces.INewResponse event exists almost purely for symmetry with the repoze.bfg.interfaces.INewRequest event.
See Using Events for more information about how to register code which subscribes to these events.