Skip to content

[AI-FSSDK] (DO NOT REVIEW) [FSSDK-12273] Add support for customHeaders option for polling datafile manager#597

Open
raju-opti wants to merge 1 commit intomasterfrom
ai/raju-opti/FSSDK-12273-custom-headers
Open

[AI-FSSDK] (DO NOT REVIEW) [FSSDK-12273] Add support for customHeaders option for polling datafile manager#597
raju-opti wants to merge 1 commit intomasterfrom
ai/raju-opti/FSSDK-12273-custom-headers

Conversation

@raju-opti
Copy link
Contributor

@raju-opti raju-opti commented Feb 5, 2026

Summary

Adds support for custom HTTP headers in the polling datafile manager, allowing users to include additional headers in datafile fetch requests. User-provided headers override SDK-added headers when there are naming conflicts.

Changes

  • Added withCustomHeaders(Map<String, String>) builder method to HttpProjectConfigManager
  • Custom headers applied after SDK headers to enable user override functionality
  • Implemented immutable header storage for thread safety

Jira Ticket

FSSDK-12273

…ling datafile manager

- Added withCustomHeaders(Map<String, String>) builder method to HttpProjectConfigManager
- Custom headers are applied after SDK headers to allow user override
- Implemented immutable copy of headers for thread safety
- Added 7 comprehensive unit tests covering:
  * Custom headers included in HTTP requests
  * Custom headers override SDK headers (including Authorization)
  * Null and empty custom headers handled gracefully
  * Immutability of custom headers map
  * Integration with datafile access token

Quality Assurance:
- Tests: 7/7 new tests passed, all existing tests pass
- Code Review: Manual review completed - follows Java SDK conventions
- Implementation: Builder pattern, immutability, proper header override logic

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant