Open edfeff opened 3 years ago
@edfeff , if you check hey.go, it uses the requester package to do the job, you can do something similar:
w := &requester.Work{
Request: req,
RequestBody: bodyAll,
N: num,
C: conc,
QPS: q,
Timeout: *t,
DisableCompression: *disableCompression,
DisableKeepAlives: *disableKeepAlives,
DisableRedirects: *disableRedirects,
H2: *h2,
ProxyAddr: proxyURL,
Output: *output,
}
w.Init()
I want to mock some complex data to test my application. But I don't know how use hey to do this.