MCPcopy Create free account
hub / github.com/aws/aws-lambda-go / RequestFromContext

Function RequestFromContext

lambdaurl/http_handler.go:96–99  ·  view source on GitHub ↗

RequestFromContext returns the *events.LambdaFunctionURLRequest from a context.

(ctx context.Context)

Source from the content-addressed store, hash-verified

94
95// RequestFromContext returns the *events.LambdaFunctionURLRequest from a context.
96func 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//

Callers 2

logLambdaRequestFunction · 0.92
TestRequestContextFunction · 0.85

Calls 1

ValueMethod · 0.65

Tested by 1

TestRequestContextFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…