1
0
mirror of https://github.com/wg/wrk synced 2026-05-18 19:49:49 +08:00

call optional done() script function

This commit is contained in:
Will
2013-08-18 20:37:21 +09:00
Unverified
parent e24ed26a43
commit 1e7411aebd
9 changed files with 237 additions and 42 deletions
+3 -2
View File
@@ -30,10 +30,11 @@ function wrk.format(method, path, headers, body)
return table.concat(s, "\r\n")
end
function wrk.init() req = wrk.format() end
function wrk.request() return req end
function wrk.init(args) req = wrk.format() end
function wrk.request() return req end
init = wrk.init
request = wrk.request
done = nil
return wrk