# werkzeug.BaseResponse.call_on_close¶

BaseResponse.call_on_close(func)[source]

Adds a function to the internal list of functions that should be called as part of closing down the response. Since 0.7 this function also returns the function that was passed so that this can be used as a decorator.

New in version 0.6.