MCPcopy
hub / github.com/aws/aws-lambda-go / WithSetEscapeHTML

Function WithSetEscapeHTML

lambda/handler.go:56–60  ·  view source on GitHub ↗

WithSetEscapeHTML sets the SetEscapeHTML argument on the underlying json encoder

(escapeHTML bool)

Source from the content-addressed store, hash-verified

54
55// WithSetEscapeHTML sets the SetEscapeHTML argument on the underlying json encoder
56func WithSetEscapeHTML(escapeHTML bool) Option {
57 return Option(func(h *handlerOptions) {
58 h.jsonResponseEscapeHTML = escapeHTML
59 })
60}
61
62// WithSetIndent sets the SetIndent argument on the underling json encoder
63func WithSetIndent(prefix, indent string) Option {

Callers 2

ExampleWithSetEscapeHTMLFunction · 0.92
TestInvokesFunction · 0.85

Calls 1

OptionFuncType · 0.85

Tested by 2

ExampleWithSetEscapeHTMLFunction · 0.74
TestInvokesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…