diff options
author | Marcel Hellkamp <marc@gsites.de> | 2012-10-27 23:04:37 +0200 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2012-10-28 00:11:15 +0200 |
commit | 9cd6fe3a27dca7dfe0dff0aed1499b7739f962ba (patch) | |
tree | 0dcd62c601f31afa3dcfece78222e1806268f9f6 /docs/plugindev.rst | |
parent | 08117068cc22b540241c2ca330382d77e4910223 (diff) | |
parent | 26ac343788ac4dd2bbdcf8d6734411a495571b17 (diff) | |
download | bottle-context.tar.gz |
Merge branch 'master' into context-mergecontext
Conflicts:
bottle.py
test/test_environ.py
test/test_sendfile.py
Diffstat (limited to 'docs/plugindev.rst')
-rwxr-xr-x | docs/plugindev.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/plugindev.rst b/docs/plugindev.rst index 1649149..40da98c 100755 --- a/docs/plugindev.rst +++ b/docs/plugindev.rst @@ -31,7 +31,7 @@ Of course, this is just a simplification. Plugins can do a lot more than just de return body return wrapper - bottle.install(stopwatch) + install(stopwatch) This plugin measures the execution time for each request and adds an appropriate ``X-Exec-Time`` header to the response. As you can see, the plugin returns a wrapper and the wrapper calls the original callback recursively. This is how decorators usually work. |