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

Function getPathParam

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

Source from the content-addressed store, hash-verified

898}
899
900func getPathParam(f filters.FilterContext) func(*lua.LState) int {
901 return func(s *lua.LState) int {
902 n := s.ToString(-1)
903 p := f.PathParam(n)
904 if p != "" {
905 s.Push(lua.LString(p))
906 return 1
907 }
908 return 0
909 }
910}
911
912func unsupported(message string) func(*lua.LState) int {
913 return func(s *lua.LState) int {

Callers 1

getContextValueFunction · 0.85

Calls 1

PathParamMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…