1 個回答
- 最新
- 最多得票
- 最多評論
1
The HTTP request headers are available within the event
object. For example, the following code should return the requesting browser's user agent:
import json
def lambda_handler(event, context):
return {
'statusCode': 200,
'body': json.dumps(event["headers"]["user-agent"])
}
已回答 2 年前
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前