Skip to content
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

Support a way to set headers and body before the client is started #16

Closed
mcollina opened this issue Jun 24, 2016 · 4 comments · Fixed by #22
Closed

Support a way to set headers and body before the client is started #16

mcollina opened this issue Jun 24, 2016 · 4 comments · Fixed by #22

Comments

@mcollina
Copy link
Owner

Maybe we can pass in a function that returns an object, or a function that accepts a client.

What do you think @thekemkid?

@GlenTiki
Copy link
Collaborator

You can pass the headers and body you want your request to be built with as options to autocannon already, and they are passed to the clients. Do you want to add an extra method of passing the headers and body to the clients?

@mcollina
Copy link
Owner Author

The use case is "I want a custom header for each client".

@mcollina
Copy link
Owner Author

Released as 0.6.0.

@mcollina mcollina reopened this Jun 24, 2016
@mcollina
Copy link
Owner Author

My bad, wrong issue.

mcollina added a commit that referenced this issue Jun 25, 2016
Fixed #16: can now pass customiseRequest to build custom requests per connection
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 a pull request may close this issue.

2 participants