Http
Http source connector
Descriptionâ
Get data from http or https interface
tip
Engine Supported and plugin name
- Spark: Http
- Flink: Http
Optionsâ
name | type | required | default vale |
---|---|---|---|
url | string | yes | - |
method | string | no | GET |
header | string | no | |
request_params | string | no | |
sync_path | string | no |
url [string]â
HTTP request path, starting with http:// or https://.
method[string]â
HTTP request method, GET or POST, default GET.
header[string]â
HTTP request header, json format.
request_params[string]â
HTTP request parameters, json format. Use string with escapes to save json
sync_path[string]â
HTTP multiple requests, the storage path of parameters used for synchronization (hdfs).
common options [string]â
Source plugin common parameters, please refer to Source Plugin for details.
Exampleâ
Http {
url = "http://date.jsontest.com/"
result_table_name= "response_body"
}
Notesâ
According to the processing result of the http call, to determine whether the synchronization parameters need to be updated, it needs to be written to hdfs through the hdfs sink plugin after the judgment is made outside the http source plugin.