Skip to content

Commit e8f457b

Browse files
committed
updated main.py
1 parent f26a380 commit e8f457b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

gcp_cloud_function_ifconfig/main.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,18 @@
2222
2323
Example usage: check GCF source IP to compare if it's permitted through Cloudflare / Firewall rules
2424
25-
The HTTP request is irrelevant, although we could pass the website to query via an arg
26-
in which case this would just act as a proxy. See the adjacent gcp_cloud_function_proxy/main.py
25+
The HTTP request is irrelevant, just pass an empty JSON document '{}', although we could pass the website to query
26+
in a field in which case this would just act as a proxy.
27+
28+
See Also: gcp_cloud_function_proxy/main.py
29+
2730
2831
Tested on GCP Cloud Functions with Python 3.9
2932
3033
"""
3134

35+
# https://cloud.google.com/functions/docs/writing/http#writing_http_content-python
36+
3237
# https://cloud.google.com/functions/docs/writing/specifying-dependencies-python
3338

3439
import requests

0 commit comments

Comments
 (0)