momo-jun commented on code in PR #18582: URL: https://github.com/apache/pulsar/pull/18582#discussion_r1031958418
########## site2/docs/io-http-sink.md: ########## @@ -0,0 +1,56 @@ +--- +id: io-http-sink +title: HTTTP sink connector +sidebar_label: "HTTP sink connector" +--- + +The HTTP sink connector pulls the records from Pulsar topics and makes a POST request to a configurable HTTP url (webhook). Review Comment: ```suggestion The HTTP sink connector pulls the records from Pulsar topics and makes a POST request to a configurable HTTP URL (webhook). ``` ########## site2/docs/io-http-sink.md: ########## @@ -0,0 +1,56 @@ +--- +id: io-http-sink +title: HTTTP sink connector +sidebar_label: "HTTP sink connector" +--- + +The HTTP sink connector pulls the records from Pulsar topics and makes a POST request to a configurable HTTP url (webhook). + +The body of the HTTP request is the JSON representation of the record value. The header `Content-Type: application/json` is added to the HTTP request. + +Some other HTTP headers are added to the HTTP request: + +* `PulsarTopic`: the topic of the record +* `PulsarKey`: the key of the record +* `PulsarEventTime`: the event time of the record +* `PulsarPublishTime`: the publish time of the record +* `PulsarMessageId`: the ID of the message contained in the record +* `PulsarProperties`-*: each record property is passed with the property name prefixed by `PulsarProperties-` + +## Configuration + +The configuration of the HTTP sink connector has the following properties. + +### Property + +| Name | Type | Required | Default | Description | +|-----------|--------|----------|------------------|-------------| +| `url` | String | false | http://localhost | The URL of the HTTP server | +| `headers` | Map | false | empty map |The HDFS directory where files read from or written to. | Review Comment: ```suggestion | `headers` | Map | false | empty map |The HDFS directory where files are read from or written to. | ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
