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

Function getRequestCookie

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

Source from the content-addressed store, hash-verified

718}
719
720func getRequestCookie(f filters.FilterContext) func(*lua.LState) int {
721 return func(s *lua.LState) int {
722 k := s.ToString(-1)
723 c, err := f.Request().Cookie(k)
724 if err == nil {
725 s.Push(lua.LString(c.Value))
726 return 1
727 }
728 return 0
729 }
730}
731
732func iterateRequestCookie(f filters.FilterContext) func(*lua.LState) int {
733 return func(s *lua.LState) int {

Callers 1

getRequestValueFunction · 0.85

Calls 1

RequestMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…