MCPcopy Index your code
hub / github.com/zalando/skipper / ExampleSetResponseInvalidField

Function ExampleSetResponseInvalidField

script/script_test.go:659–669  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

657const SetResponseInvalidField = `function response(ctx, params); ctx.response.invalid_field = "test"; end`
658
659func ExampleSetResponseInvalidField() {
660 runExample(&testContext{
661 script: SetResponseInvalidField,
662 })
663 // Output:
664 // Error calling response from function response(ctx, params); ctx.response.invalid_field = "test"; end: <script>:1: unsupported response field invalid_field
665 // stack traceback:
666 // [G]: in function (anonymous)
667 // <script>:1: in main chunk
668 // [G]: ?
669}
670
671const GetResponseInvalidField = `
672function response(ctx, params)

Callers

nothing calls this directly

Calls 1

runExampleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…