spetz commented on code in PR #2925:
URL: https://github.com/apache/iggy/pull/2925#discussion_r2986340838


##########
core/connectors/sinks/http_sink/config.toml:
##########
@@ -0,0 +1,90 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+type = "sink"
+key = "http"
+enabled = true
+version = 0
+name = "HTTP sink"
+path = "../../target/release/libiggy_connector_http_sink"
+verbose = false
+
+[[streams]]
+stream = "my_stream"
+topics = ["my_topic"]
+schema = "json"
+batch_length = 50
+poll_interval = "100ms"
+consumer_group = "http_sink_group"
+
+[plugin_config]
+# Required — target URL for HTTP requests.
+url = "https://api.example.com/ingest";
+
+# HTTP method (default: POST). Valid: GET, HEAD, POST, PUT, PATCH, DELETE.
+method = "POST"
+
+# Request timeout (default: 30s).
+timeout = "30s"
+
+# Maximum HTTP body size in bytes (default: 10MB). Set to 0 to disable.
+max_payload_size_bytes = 10485760
+
+# Payload formatting mode (default: individual).
+# - "individual": one HTTP request per message
+# - "ndjson": newline-delimited JSON, all messages in one request
+# - "json_array": JSON array of messages in one request
+# - "raw": raw bytes, individual requests only
+batch_mode = "ndjson"

Review Comment:
   If the enum would be changed to `NdJson` please remember to update the 
configs.



-- 
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]

Reply via email to