Skip to content

Commit dbf15a4

Browse files
committed
add description to http method funcs
1 parent fa35063 commit dbf15a4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

content/pages/examples/flask/flask-views-http-method-funcs.markdown

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ sidebartitle: flask.views http_method_funcs
77
meta: Python example code for the http_method_funcs function from the flask.views module of the Flask project.
88

99

10-
http_method_funcs is a function within the flask.views module of the Flask project.
10+
`http_method_funcs` is an immutable Python set within the
11+
[flask.views module](https://github.com/pallets/flask/blob/master/src/flask/views.py)
12+
of the [Flask](/flask.html) project. It contains strings of the HTTP methods
13+
"get", "post", "head", "options", "delete", "put", "trace", and "patch",
14+
which is useful for checking if an HTTP method is valid by comparing it
15+
against the items in this set.
1116

1217

1318
## Example 1 from flask-restx

0 commit comments

Comments
 (0)