8000 Update Flask document URLs in docstring (in addition to #4551) (#4592) · code4ward/python-docs-samples@9b13a6f · GitHub
[go: up one dir, main page]

Skip to content

Commit 9b13a6f

Browse files
seratchengelkeAce Nassri
authored
Update Flask document URLs in docstring (in addition to GoogleCloudPlatform#4551) (GoogleCloudPlatform#4592)
GoogleCloudPlatform#4551 was not complete. Co-authored-by: Charles Engelke <engelke@google.com> Co-authored-by: Ace Nassri <anassri@google.com>
1 parent 7804753 commit 9b13a6f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

functions/helloworld/main.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ def hello_http(request):
4242
"""HTTP Cloud Function.
4343
Args:
4444
request (flask.Request): The request object.
45-
<http://flask.pocoo.org/docs/1.0/api/#flask.Request>
45+
<https://flask.palletsprojects.com/en/1.1.x/api/#incoming-request-data>
4646
Returns:
4747
The response text, or any set of values that can be turned into a
4848
Response object using `make_response`
49-
<http://flask.pocoo.org/docs/1.0/api/#flask.Flask.make_response>.
49+
<https://flask.palletsprojects.com/en/1.1.x/api/#flask.make_response>.
5050
"""
5151
request_json = request.get_json(silent=True)
5252
request_args = request.args
@@ -116,11 +116,11 @@ def hello_content(request):
116116
according to the "content-type" header.
117117
Args:
118118
request (flask.Request): The request object.
119-
<http://flask.pocoo.org/docs/1.0/api/#flask.Request>
119+
<https://flask.palletsprojects.com/en/1.1.x/api/#incoming-request-data>
120120
Returns:
121121
The response text, or any set of values that can be turned into a
122122
Response object using `make_response`
123-
<http://flask.pocoo.org/docs/1.0/api/#flask.Flask.make_response>.
123+
<https://flask.palletsprojects.com/en/1.1.x/api/#flask.make_response>.
124124
"""
125125
content_type = request.headers['content-type']
126126
if content_type == 'application/json':
@@ -146,11 +146,11 @@ def hello_method(request):
146146
""" Responds to a GET request with "Hello world!". Forbids a PUT request.
147147
Args:
148148
request (flask.Request): The request object.
149-
<http://flask.pocoo.org/docs/1.0/api/#flask.Request>
149+
<https://flask.palletsprojects.com/en/1.1.x/api/#incoming-request-data>
150150
Returns:
151151
The response text, or any set of values that can be turned into a
152-
Response object using `make_response`
153-
<http://flask.pocoo.org/docs/1.0/api/#flask.Flask.make_response>.
152+
Response object using `make_response`
153+
<https://flask.palletsprojects.com/en/1.1.x/api/#flask.make_response>.
154154
"""
155155
from flask import abort
156156

0 commit comments

Comments
 (0)
0