update api.rst
This commit is contained in:
parent
b505e2a7bd
commit
2220b0b4ba
2 changed files with 3 additions and 8 deletions
|
|
@ -747,6 +747,9 @@ Full example::
|
||||||
.. versionadded:: 0.8
|
.. versionadded:: 0.8
|
||||||
The `provide_automatic_options` functionality was added.
|
The `provide_automatic_options` functionality was added.
|
||||||
|
|
||||||
|
.. versionadded:: 2.1.1
|
||||||
|
Add specified HTTP method validation.
|
||||||
|
|
||||||
Command Line Interface
|
Command Line Interface
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2026,11 +2026,3 @@ def test_app_freed_on_zero_refcount():
|
||||||
assert weak() is None
|
assert weak() is None
|
||||||
finally:
|
finally:
|
||||||
gc.enable()
|
gc.enable()
|
||||||
|
|
||||||
|
|
||||||
def test_validate_http_method_route(app, client):
|
|
||||||
|
|
||||||
with pytest.raises(TypeError):
|
|
||||||
@app.route("/", methods=["BAD_METHOD"])
|
|
||||||
def bad_method_func():
|
|
||||||
return "Hello World"
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue