MCPcopy
hub / github.com/zalando/skipper / iterateRequestCookie

Function iterateRequestCookie

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

Source from the content-addressed store, hash-verified

730}
731
732func iterateRequestCookie(f filters.FilterContext) func(*lua.LState) int {
733 return func(s *lua.LState) int {
734 s.Push(s.NewFunction(nextCookie(f.Request().Cookies())))
735 return 1
736 }
737}
738
739func nextCookie(cookies []*http.Cookie) func(*lua.LState) int {
740 return func(s *lua.LState) int {

Callers 1

getRequestValueFunction · 0.85

Calls 3

nextCookieFunction · 0.85
CookiesMethod · 0.80
RequestMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…