cleanup & comment http_response def config

closes #332
This commit is contained in:
Cameron Sparr
2016-04-07 10:31:06 -06:00
parent 377b030d88
commit 90185dc6b3
4 changed files with 28 additions and 7 deletions

View File

@@ -34,15 +34,15 @@ var sampleConfig = `
response_timeout = 5
## HTTP Request Method
method = "GET"
## HTTP Request Headers (all values must be strings)
[inputs.http_response.headers]
# Host = "github.com"
## Whether to follow redirects from the server (defaults to false)
follow_redirects = true
## HTTP Request Headers (all values must be strings)
# [inputs.http_response.headers]
# Host = "github.com"
## Optional HTTP Request Body
body = '''
{'fake':'data'}
'''
# body = '''
# {'fake':'data'}
# '''
`
// SampleConfig returns the plugin SampleConfig