8000 Add Request doc link (#1637) · lesliepound/python-docs-samples@de2cb86 · GitHub
[go: up one dir, main page]

Skip to content

Commit de2cb86

Browse files
author
Ace Nassri
authored
Add Request doc link (GoogleCloudPlatform#1637)
Change-Id: I7e2a29f0bd09e44a309d41c9923e5fc587194ca3
1 parent 6fd6f6b commit de2cb86

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

functions/concepts/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def statelessness(request):
2626
within a specific instance.
2727
Args:
2828
request (flask.Request): The request object.
29+
<http://flask.pocoo.org/docs/0.12/api/#flask.Request>
2930
Returns:
3031
The response text, or any set of values that can be turned into a
3132
Response object using `make_response`
@@ -61,6 +62,7 @@ def scope_demo(request):
6162
HTTP Cloud Function that declares a variable.
6263
Args:
6364
request (flask.Request): The request object.
65+
<http://flask.pocoo.org/docs/0.12/api/#flask.Request>
6466
Returns:
6567
The response text, or any set of values that can be turned into a
6668
Response object using `make_response`
@@ -80,6 +82,7 @@ def make_request(request):
8082
HTTP Cloud Function that makes another HTTP request.
8183
Args:
8284
request (flask.Request): The request object.
85+
<http://flask.pocoo.org/docs/0.12/api/#flask.Request>
8386
Returns:
8487
The response text, or any set of values that can be turned into a
8588
Response object using `make_response`

functions/helloworld/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def hello_get(request):
2121
"""HTTP Cloud Function.
2222
Args:
2323
request (flask.Request): The request object.
24+
<http://flask.pocoo.org/docs/0.12/api/#flask.Request>
2425
Returns:
2526
The response text, or any set of values that can be turned into a
2627
Response object using `make_response`
@@ -52,6 +53,7 @@ def hello_http(request):
5253
"""HTTP Cloud Function.
5354
Args:
5455
request (flask.Request): The request object.
56+
<http://flask.pocoo.org/docs/0.12/api/#flask.Request>
5557
Returns:
5658
The response text, or any set of values that can be turned into a
5759
Response object using `make_response`
@@ -102,6 +104,7 @@ def hello_content(request):
102104
according to the "content-type" header.
103105
Args:
104106
request (flask.Request): The request object.
107+
<http://flask.pocoo.org/docs/0.12/api/#flask.Request>
105108
Returns:
106109
The response text, or any set of values that can be turned into a
107110
Response object using `make_response`
@@ -127,6 +130,7 @@ def hello_method(request):
127130
""" Responds to a GET request with "Hello world!". Forbids a PUT request.
128131
Args:
129132
request (flask.Request): The request object.
133+
<http://flask.pocoo.org/docs/0.12/api/#flask.Request>
130134
Returns:
131135
The response text, or any set of values that can be turned into a
132136
Response object using `make_response`

functions/tips/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def lazy_globals(request):
6363
HTTP Cloud Function that uses lazily-initialized globals.
6464
Args:
6565
request (flask.Request): The request object.
66+
<http://flask.pocoo.org/docs/0.12/api/#flask.Request>
6667
Returns:
6768
The response text, or any set of values that can be turned into a
6869
Response object using `make_response`
@@ -88,6 +89,7 @@ def connection_pooling(request):
8889
HTTP Cloud Function that uses a connection pool to make HTTP requests.
8990
Args:
9091
request (flask.Request): The request object.
92+
<http://flask.pocoo.org/docs/0.12/api/#flask.Request>
9193
Returns:
9294
The response text, or any set of values that can be turned into a
9395
Response object using `make_response`

0 commit comments

Comments
 (0)
0