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

Function nextQuery

script/script.go:882–898  ·  view source on GitHub ↗
(v url.Values)

Source from the content-addressed store, hash-verified

880}
881
882func nextQuery(v url.Values) func(*lua.LState) int {
883 keys := make([]string, 0, len(v))
884 for k := range v {
885 keys = append(keys, k)
886 }
887 return func(s *lua.LState) int {
888 if len(keys) > 0 {
889 k := keys[0]
890 s.Push(lua.LString(k))
891 s.Push(lua.LString(v.Get(k)))
892 keys[0] = "" // mind peace
893 keys = keys[1:]
894 return 2
895 }
896 return 0
897 }
898}
899
900func getPathParam(f filters.FilterContext) func(*lua.LState) int {
901 return func(s *lua.LState) int {

Callers 1

iterateRequestURLQueryFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…