How do we return html as the response of a Lambda Function?
Guide contributeur
Stack technique
javascriptnodejsaws
Domaine
backendcloud
Type d'issue
documentation
DifficultéDifficulté estimée pour un nouveau contributeur, de 1 pour un très petit changement à 5 pour un travail expert.
2
Temps estiméFourchette de temps approximative pour investiguer, implémenter, tester et préparer une pull request.
under 1 hour
Statut d'activitéDisponibilité apparente de l'issue : fraîche, active, ancienne, bloquée ou en attente d'un mainteneur.
stale
ClartéClarté avec laquelle l'issue explique le changement attendu, les critères d'acceptation et la prochaine étape.
clear
Prérequis
AWS Lambda basicsJavaScriptHTTP response handling
Accessibilité débutantScore de 1 à 100 estimant l'accessibilité de cette issue pour un premier contributeur.
70
Direction de recherche
Investigate how to set the response content type to text/html in AWS Lambda. Look at the AWS documentation and examples in the repository. Possibly refer to the comments for existing solutions. The answer should involve modifying the Lambda function to return an HTML string with appropriate headers.