github.com/craicoverflow/tyk@v2.9.6-rc3+incompatible/coprocess/lua/tyk/request.lua (about)

     1  local request = {}
     2  
     3  function request.set_header(key, value)
     4    if object['request']['set_headers'] == nil then
     5      object['request']['set_headers'] = {}
     6    end
     7    object['request']['set_headers'][key] = value
     8  end
     9  
    10  return request