featzhang opened a new pull request, #32:
URL: https://github.com/apache/flink-connector-http/pull/32

   Add formal ConfigOption definitions for custom HTTP headers in both the HTTP 
lookup source and HTTP dynamic sink connectors.
   
   Previously, custom HTTP headers were only configurable via raw properties 
using the prefixes 'http.source.lookup.header.' and 'http.sink.header.', but 
these were not declared as official ConfigOptions. This meant no IDE 
autocomplete support, missing documentation, and unclear user guidance.
   
   Changes:
   - Add SOURCE_LOOKUP_HEADERS ConfigOption (Map type) to 
HttpLookupConnectorOptions with prefix 'http.source.lookup.header'
   - Add SINK_HEADERS ConfigOption (Map type) to 
HttpDynamicSinkConnectorOptions with prefix 'http.sink.header'
   - Register both options in the respective factory's optionalOptions() so 
Flink's table option validator recognizes them
   - Add tests verifying custom headers can be specified in SQL DDL without 
triggering ValidationException
   
   The header values are still passed through Properties and read by the 
existing HttpHeaderUtils.prepareHeaderMap() mechanism, so the runtime behavior 
is unchanged. The new ConfigOptions serve primarily as documentation and 
validation anchors.


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