MCPcopy Index your code
hub / github.com/aws/aws-lambda-go / WithContextValue

Function WithContextValue

lambda/handler.go:49–53  ·  view source on GitHub ↗

WithContextValue adds a value to the handler context. If a base context was set using WithContext, that base is used as the parent.

(key interface{}, value interface{})

Source from the content-addressed store, hash-verified

47// WithContextValue adds a value to the handler context.
48// If a base context was set using WithContext, that base is used as the parent.
49func WithContextValue(key interface{}, value interface{}) Option {
50 return Option(func(h *handlerOptions) {
51 h.contextValues[key] = value
52 })
53}
54
55// WithSetEscapeHTML sets the SetEscapeHTML argument on the underlying json encoder
56func WithSetEscapeHTML(escapeHTML bool) Option {

Callers 2

ExampleWithContextValueFunction · 0.92
WithDetectContentTypeFunction · 0.92

Calls 1

OptionFuncType · 0.85

Tested by 1

ExampleWithContextValueFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…