Merge pull request #655 from influxdata/flux/http-get-timeout

'http.get' timeout parameter
pull/661/head
Scott Anderson 2019-12-06 15:41:13 -07:00 committed by GitHub
commit ee69f9dae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -25,7 +25,8 @@ import "experimental/http"
http.get(
url: "http://localhost:9999/",
headers: {x:"a", y:"b", z:"c"}
headers: {x:"a", y:"b", z:"c"},
timeout: 30s
)
```
@ -41,6 +42,12 @@ Headers to include with the GET request.
_**Data type:** Object_
### timeout
Timeout for the GET request.
Default is `30s`.
_**Data type:** Duration_
## Examples
##### Get the status of InfluxDB