Merge pull request #655 from influxdata/flux/http-get-timeout
'http.get' timeout parameterpull/661/head
commit
ee69f9dae8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue