8000 Add Work.RequestFunc by twpayne · Pull Request #149 · rakyll/hey · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add Work.RequestFunc #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from 8000
Aug 6, 2020
Merged

Add Work.RequestFunc #149

merged 2 commits into from
Aug 6, 2020

Conversation

twpayne
Copy link
Contributor
@twpayne twpayne commented Apr 25, 2019

With this commit, people using hey as a library can generate different requests, rather than repeating the same request each time. This can be useful for simulating a variety of requests or replaying traffic.

twpayne added 2 commits April 25, 2019 17:38
With this commit, people using hey as a library can generate different
requests, rather than repeating the same request each time. This can be
useful for simulating a variety of requests or replaying traffic.
@twpayne
Copy link
Contributor Author
twpayne commented May 16, 2019

Gentle ping. Any chance of getting this small PR merged?

@rakyll rakyll merged commit af17706 into rakyll:master Aug 6, 2020
@schristoff
Copy link

Hey - I'm really excited for this! Do you have any information on how I populate RequestFunc func() - I see every other option in there maps to a CLI flag.
Thanks so much!

@twpayne twpayne deleted the request-func branch August 10, 2020 15:17
@twpayne
Copy link
Contributor Author
twpayne commented Aug 10, 2020

RequestFunc cannot be used from the CLI because it requires code, not data. You need to write a program that uses this library that populates a requester.Work struct and then calls Run().

@schristoff
Copy link

Okay - I figured as much but wanted to make sure before I started off on that route. Thank you!

@soldatov-s
Copy link
soldatov-s commented Sep 10, 2020

Okay - I figured as much but wanted to make sure before I started off on that route. Thank you!

May be my PR #200 with additional request in CLI can help you. Our node.js developers don't want to write any golang code for performance tests and I extended hey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0