1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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"])
}
con risposta 2 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa