1.1 KiB
1.1 KiB
title | description | aliases | menu | weight | influxdb/v2.0/tags | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
http.endpoint() function | The `http.endpoint()` function sends output data to an HTTP URL using the POST request method. |
|
|
202 |
|
The http.endpoint()
function sends output data to an HTTP URL using the POST request method.
Function type: Output
import "http"
http.endpoint(
url: "http://localhost:1234/"
)
Parameters
url
The URL to POST to.
Data type: String
mapFn
A function that builds the record used to generate the POST request.
{{% note %}}
You should rarely need to override the default mapFn
parameter.
To see the default mapFn
value or for insight into possible overrides, view the
http.endpoint()
source code.
{{% /note %}}
Data type: Function
The returned record must include the following fields:
headers
data
For more information, see http.post()