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

Function getRequestURLQuery

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

Source from the content-addressed store, hash-verified

837}
838
839func getRequestURLQuery(f filters.FilterContext) func(*lua.LState) int {
840 return func(s *lua.LState) int {
841 k := s.ToString(-1)
842 res := f.Request().URL.Query().Get(k)
843 if res != "" {
844 s.Push(lua.LString(res))
845 return 1
846 }
847 return 0
848 }
849}
850
851func setRequestURLQuery(f filters.FilterContext) func(*lua.LState) int {
852 return func(s *lua.LState) int {

Callers 1

getRequestValueFunction · 0.85

Calls 2

GetMethod · 0.65
RequestMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…