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

Function addResponseHeader

script/script.go:790–799  ·  view source on GitHub ↗
(f filters.FilterContext)

Source from the content-addressed store, hash-verified

788}
789
790func addResponseHeader(f filters.FilterContext) func(*lua.LState) int {
791 return func(s *lua.LState) int {
792 value := s.ToString(-1)
793 name := s.ToString(-2)
794 if name != "" && value != "" {
795 f.Response().Header.Add(name, value)
796 }
797 return 0
798 }
799}
800
801func responseHeaderValues(f filters.FilterContext) func(*lua.LState) int {
802 return func(s *lua.LState) int {

Callers 1

getResponseValueFunction · 0.85

Calls 2

AddMethod · 0.65
ResponseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…