RequestFromContext returns the *events.LambdaFunctionURLRequest from a context.
(ctx context.Context)
| 94 | |
| 95 | // RequestFromContext returns the *events.LambdaFunctionURLRequest from a context. |
| 96 | func RequestFromContext(ctx context.Context) (*events.LambdaFunctionURLRequest, bool) { |
| 97 | req, ok := ctx.Value(requestContextKey{}).(*events.LambdaFunctionURLRequest) |
| 98 | return req, ok |
| 99 | } |
| 100 | |
| 101 | // Wrap converts an http.Handler into a Lambda request handler. |
| 102 | // |
searching dependent graphs…