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

Function nextCookie

script/script.go:739–751  ·  view source on GitHub ↗
(cookies []*http.Cookie)

Source from the content-addressed store, hash-verified

737}
738
739func nextCookie(cookies []*http.Cookie) func(*lua.LState) int {
740 return func(s *lua.LState) int {
741 if len(cookies) > 0 {
742 c := cookies[0]
743 s.Push(lua.LString(c.Name))
744 s.Push(lua.LString(c.Value))
745 cookies[0] = nil // mind peace
746 cookies = cookies[1:]
747 return 2
748 }
749 return 0
750 }
751}
752
753func getResponseHeader(f filters.FilterContext) func(*lua.LState) int {
754 return func(s *lua.LState) int {

Callers 1

iterateRequestCookieFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…