Skip to content
Myr

Merge pull request #665 from trungly/deferred_callbacks_fix

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Update docs/patterns/deferredcallbacks.rst

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 94a9b96, b4fc441 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/patterns/deferredcallbacks.rst+1 added-1 removed
47 unmodified lines
4849 @app.after_request50 def call_after_request_callbacks(response):51 for callback in getattr(g, 'after_request_callbacks', ()):52 response = callback(response)52 callback(response)53 return response545556A Practical Example
17 unmodified lines