-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
add http_response plugin #943
Conversation
I may add the ability to parse http headers in the format: ''' |
That should be enough input for what I need. |
Thanks for the contribution @lswith, but instead of a standalone plugin, do you think you could add this to the |
although the addition of headers may make that difficult |
I thought about it and I feel like this is too different to it. Yes they both track response time, however an http request is quite different to a tcp connection. |
sure, I think actually it's OK to leave as separate |
headers = ''' | ||
Host: github.com | ||
''' | ||
## Whether to follow redirects from the server (defaults to false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these should be indented by two spaces, not tabs
overall this looks good, but you'll need to write unit tests. |
will do. |
Tests are complete. Waiting on you guys |
## Server address (default http://localhost) | ||
address = "http://github.com" | ||
## Set response_timeout (default 10 seconds) | ||
response_timeout = 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default this to 5 seconds
solves issue #332