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:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user