Documentation
¶
Overview ¶
Package lambdaurl serves requests from Lambda Function URLs using http.Handler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestFromContext ¶
func RequestFromContext(ctx context.Context) (*events.LambdaFunctionURLRequest, bool)
RequestFromContext returns the *events.LambdaFunctionURLRequest from a context.
func Start ¶
Start wraps a http.Handler and calls lambda.StartHandlerFunc Only supports:
- Lambda Function URLs configured with `InvokeMode: RESPONSE_STREAM`
- Lambda Functions using the `provided` or `provided.al2` runtimes.
- Lambda Functions using the `go1.x` runtime when compiled with `-tags lambda.norpc`
func Wrap ¶
func Wrap(handler http.Handler) func(context.Context, *events.LambdaFunctionURLRequest) (*events.LambdaFunctionURLStreamingResponse, error)
Wrap converts an http.Handler into a lambda request handler. Only Lambda Function URLs configured with `InvokeMode: RESPONSE_STREAM` are supported with the returned handler. The response body of the handler will conform to the content-type `application/vnd.awslambda.http-integration-response`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.