pipeline.lua 274 B

123456789101112131415
  1. init = function(args)
  2. request_uri = args[1]
  3. depth = tonumber(args[2]) or 1
  4. local r = {}
  5. for i=1,depth do
  6. r[i] = wrk.format(nil, request_uri)
  7. end
  8. req = table.concat(r)
  9. end
  10. request = function()
  11. wrk.headers["J-Tenant-Id"] = "1007"
  12. return req
  13. end