diff options
author | Marcel Hellkamp <marc@gsites.de> | 2011-02-18 15:38:56 +0100 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2011-02-18 15:38:56 +0100 |
commit | 19aca2b88684bc2f488b4176d8b7e4f2bf96679a (patch) | |
tree | ee5f6cc916b35c28d46663ba8f34e846997f2ed8 | |
parent | 688e0ab32e5f7849f2011769eab8e26d43c5891a (diff) | |
download | bottle-19aca2b88684bc2f488b4176d8b7e4f2bf96679a.tar.gz |
Docstrings.
-rwxr-xr-x | bottle.py | 34 |
1 files changed, 15 insertions, 19 deletions
@@ -498,25 +498,21 @@ class Bottle(object): return response.output return wrapper - def get(self, path=None, method='GET', **kargs): - """ Decorator: Bind a function to a GET request path. - See :meth:'route' for details. """ - return self.route(path, method, **kargs) - - def post(self, path=None, method='POST', **kargs): - """ Decorator: Bind a function to a POST request path. - See :meth:'route' for details. """ - return self.route(path, method, **kargs) - - def put(self, path=None, method='PUT', **kargs): - """ Decorator: Bind a function to a PUT request path. - See :meth:'route' for details. """ - return self.route(path, method, **kargs) - - def delete(self, path=None, method='DELETE', **kargs): - """ Decorator: Bind a function to a DELETE request path. - See :meth:'route' for details. """ - return self.route(path, method, **kargs) + def get(self, path=None, method='GET', **options): + """ Equals :meth:`route`. """ + return self.route(path, method, **options) + + def post(self, path=None, method='POST', **options): + """ Equals :meth:`route` with a ``POST`` method parameter. """ + return self.route(path, method, **options) + + def put(self, path=None, method='PUT', **options): + """ Equals :meth:`route` with a ``PUT`` method parameter. """ + return self.route(path, method, **options) + + def delete(self, path=None, method='DELETE', **options): + """ Equals :meth:`route` with a ``DELETE`` method parameter. """ + return self.route(path, method, **options) def error(self, code=500): """ Decorator: Register an output handler for a HTTP error code""" |