demo: рабочая версия функции с requests, загрузка из архива работает

This commit is contained in:
“Naeel”
2026-05-03 17:41:52 +04:00
parent 4ecaa508ea
commit 47759b5231
3 changed files with 15 additions and 0 deletions
BIN
View File
Binary file not shown.
+14
View File
@@ -0,0 +1,14 @@
import requests
def main(event, context):
try:
r = requests.get('https://httpbin.org/get', timeout=3)
return {
"statusCode": 200,
"body": f"Demo OK: {r.status_code}, {r.json().get('url')}"
}
except Exception as e:
return {
"statusCode": 500,
"body": f"Error: {str(e)}"
}
+1
View File
@@ -0,0 +1 @@
requests==2.31.0