update api.rst

This commit is contained in:
IML 2021-06-06 01:41:39 +09:00
parent b505e2a7bd
commit 2220b0b4ba
2 changed files with 3 additions and 8 deletions

View file

@ -747,6 +747,9 @@ Full example::
.. versionadded:: 0.8
The `provide_automatic_options` functionality was added.
.. versionadded:: 2.1.1
Add specified HTTP method validation.
Command Line Interface
----------------------

View file

@ -2026,11 +2026,3 @@ def test_app_freed_on_zero_refcount():
assert weak() is None
finally:
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"