# README
lambdaurl-buffered
lambdaurl
converts an http.Handler
into a Lambda request handler. It supports Lambda Function URLs configured with buffered response mode.
Lambda functions with
- API Gateway v1 (REST), API Gateway v2 (HTTP), Application Load Balancer: Use https://github.com/awslabs/aws-lambda-go-api-proxy
- Function URLs (streaming): Use https://github.com/aws/aws-lambda-go/blob/main/lambdaurl/http_handler.go
- Function URLs (buffered): Use this library until the above options add support for buffered responses.
e := echo.New()
e.GET("/hc", HealthCheck)
// lambda from github.com/aws/aws-lambda-go/lambda
lambda.Start(lambdaurl.Wrap(e))
License
This project is a redistribution with modifications of code from: https://github.com/aws/aws-lambda-go/blob/main/lambdaurl/http_handler.go
# Functions
RequestFromContext returns the *events.LambdaFunctionURLRequest from a context.
No description provided by the author
Wrap converts an http.Handler into a Lambda request handler.
# Structs
RequestConvertionError is returned when the conversion of the Lambda request to an http.Request fails.
WriteResponseError is returned when writing the response fails.