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

Function responseHeaderValues

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

Source from the content-addressed store, hash-verified

799}
800
801func responseHeaderValues(f filters.FilterContext) func(*lua.LState) int {
802 return func(s *lua.LState) int {
803 name := s.ToString(-1)
804 values := f.Response().Header.Values(name)
805 res := s.CreateTable(len(values), 0)
806 for _, v := range values {
807 res.Append(lua.LString(v))
808 }
809 s.Push(res)
810 return 1
811 }
812}
813
814func iterateResponseHeader(f filters.FilterContext) func(*lua.LState) int {
815 return func(s *lua.LState) int {

Callers 1

getResponseValueFunction · 0.85

Calls 2

ValuesMethod · 0.65
ResponseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…