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

Function addRequestHeader

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

Source from the content-addressed store, hash-verified

686}
687
688func addRequestHeader(f filters.FilterContext) func(*lua.LState) int {
689 return func(s *lua.LState) int {
690 value := s.ToString(-1)
691 name := s.ToString(-2)
692 if name != "" && value != "" {
693 f.Request().Header.Add(name, value)
694 }
695 return 0
696 }
697}
698
699func requestHeaderValues(f filters.FilterContext) func(*lua.LState) int {
700 return func(s *lua.LState) int {

Callers 1

getRequestValueFunction · 0.85

Calls 2

AddMethod · 0.65
RequestMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…