mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
281 B
17 lines
281 B
11 years ago
|
-- example script demonstrating HTTP pipelining
|
||
|
|
||
|
init = function(args)
|
||
|
wrk.init(args)
|
||
|
|
||
|
local r = {}
|
||
|
r[1] = wrk.format(nil, "/?foo")
|
||
|
r[2] = wrk.format(nil, "/?bar")
|
||
|
r[3] = wrk.format(nil, "/?baz")
|
||
|
|
||
|
req = table.concat(r)
|
||
|
end
|
||
|
|
||
|
request = function()
|
||
|
return req
|
||
|
end
|