René's URL Explorer Experiment


Title: [AI-FSSDK] (DO NOT REVIEW) [FSSDK-12273] Add support for custom headers in polling datafile managers by raju-opti · Pull Request #489 · optimizely/python-sdk · GitHub

Open Graph Title: [AI-FSSDK] (DO NOT REVIEW) [FSSDK-12273] Add support for custom headers in polling datafile managers by raju-opti · Pull Request #489 · optimizely/python-sdk

X Title: [AI-FSSDK] (DO NOT REVIEW) [FSSDK-12273] Add support for custom headers in polling datafile managers by raju-opti · Pull Request #489 · optimizely/python-sdk

Description: Summary This PR adds support for custom headers in polling datafile managers (PollingConfigManager and AuthDatafilePollingConfigManager). Users can now pass custom headers when initializing the SDK client instance, which will be included in HTTP requests to fetch the datafile. Reference implementation: optimizely/javascript-sdk#1107 Changes Added custom_headers parameter to PollingConfigManager.__init__() Added custom_headers parameter to Optimizely.__init__() and passed to config managers Updated fetch_datafile() methods to merge custom headers with internal headers User-provided headers take precedence over SDK internal headers Added comprehensive test coverage for custom headers functionality Usage Example ```python from optimizely import optimizely Initialize SDK with custom headers client = optimizely.Optimizely( sdk_key='your_sdk_key', custom_headers={ 'X-Custom-Header': 'custom_value', 'Authorization': 'Bearer custom_token' # Overrides internal auth if needed } ) ``` Testing Added test cases covering: Custom headers included in datafile fetch requests Custom headers override internal SDK headers (including `If-Modified-Since` and `Authorization`) Both `PollingConfigManager` and `AuthDatafilePollingConfigManager` support custom headers Related Jira: FSSDK-12273 Reference: optimizely/javascript-sdk#1107 🤖 Generated with Claude Code

Open Graph Description: Summary This PR adds support for custom headers in polling datafile managers (PollingConfigManager and AuthDatafilePollingConfigManager). Users can now pass custom headers when initializing the SDK...

X Description: Summary This PR adds support for custom headers in polling datafile managers (PollingConfigManager and AuthDatafilePollingConfigManager). Users can now pass custom headers when initializing the SDK...

Opengraph URL: https://github.com/optimizely/python-sdk/pull/489

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:dbcb6f3d-b51e-940c-dcc1-266b479ca736
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB828:C74C:94665F:CAF335:6B044F27
html-safe-nonce84a10f552fb779966b894538ea7ac54be0414867a49e68d7daade401da350a48
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODI4OkM3NEM6OTQ2NjVGOkNBRjMzNTo2QjA0NEYyNyIsInZpc2l0b3JfaWQiOiIxNTUxMTU2NTM0ODU0MzA3NjI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8aae4c5cbbf10aaef5a18996733a2525a3f7c3077d96933cede2dcb7bd1c25c1
hovercard-subject-tagpull_request:3250219510
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/optimizely/python-sdk/pull/489/files
twitter:imagehttps://avatars.githubusercontent.com/u/129887101?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/129887101?s=400&v=4
og:image:altSummary This PR adds support for custom headers in polling datafile managers (PollingConfigManager and AuthDatafilePollingConfigManager). Users can now pass custom headers when initializing the SDK...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/optimizely/python-sdk git https://github.com/optimizely/python-sdk.git
octolytics-dimension-user_id1274132
octolytics-dimension-user_loginoptimizely
octolytics-dimension-repository_id64881795
octolytics-dimension-repository_nwooptimizely/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id64881795
octolytics-dimension-repository_network_root_nwooptimizely/python-sdk
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release059f24c781e3a0d7df3f27a97da0e93fab06ae39
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/optimizely/python-sdk/pull/489/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foptimizely%2Fpython-sdk%2Fpull%2F489%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foptimizely%2Fpython-sdk%2Fpull%2F489%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=optimizely%2Fpython-sdk
Reloadhttps://github.com/optimizely/python-sdk/pull/489/files
Reloadhttps://github.com/optimizely/python-sdk/pull/489/files
Reloadhttps://github.com/optimizely/python-sdk/pull/489/files
optimizelyhttps://github.com/optimizely
python-sdkhttps://github.com/optimizely/python-sdk
Codehttps://github.com/optimizely/python-sdk
Issues1 (1)https://github.com/optimizely/python-sdk/issues
Pull requests7 (7)https://github.com/optimizely/python-sdk/pulls
Actionshttps://github.com/optimizely/python-sdk/actions
Projectshttps://github.com/optimizely/python-sdk/projects
Security and qualityhttps://github.com/optimizely/python-sdk/security
Insightshttps://github.com/optimizely/python-sdk/insights
Sign up for GitHub https://github.com/signup?return_to=%2Foptimizely%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Foptimizely%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
Raju Ahmed (raju-opti)https://github.com/raju-opti
masterhttps://github.com/optimizely/python-sdk/tree/master
ai/raju-opti/FSSDK-12273-custom-headershttps://github.com/optimizely/python-sdk/tree/ai/raju-opti/FSSDK-12273-custom-headers
Conversation 0 https://github.com/optimizely/python-sdk/pull/489
Commits 1 https://github.com/optimizely/python-sdk/pull/489/commits
Checks 14 https://github.com/optimizely/python-sdk/pull/489/checks
Files changed https://github.com/optimizely/python-sdk/pull/489/files
Please reload this pagehttps://github.com/optimizely/python-sdk/pull/489/files
[AI-FSSDK] (DO NOT REVIEW) [FSSDK-12273] Add support for custom headers in polling datafile managers https://github.com/optimizely/python-sdk/pull/489/files#top
Show all changes 1 commit https://github.com/optimizely/python-sdk/pull/489/files
2cad639 [FSSDK-12273] Add support for custom headers in polling datafile mana… raju-opti Feb 5, 2026 https://github.com/optimizely/python-sdk/pull/489/commits/2cad63970395bc1920cc3544af587cf0b2e8f5c0
Clear filters https://github.com/optimizely/python-sdk/pull/489/files
Please reload this pagehttps://github.com/optimizely/python-sdk/pull/489/files
Please reload this pagehttps://github.com/optimizely/python-sdk/pull/489/files
config_manager.py https://github.com/optimizely/python-sdk/pull/489/files#diff-ce33771c38124033cd0e4e3f889baa756b2c34a0f0977c121e10af81a7fb43b2
optimizely.py https://github.com/optimizely/python-sdk/pull/489/files#diff-5c705b56b2172cec61792f3216c449622418deb34a98d7771273bdad6443720f
test_config_manager.py https://github.com/optimizely/python-sdk/pull/489/files#diff-6525428e01c313781192e0e020797a51772bc44fd931b513f6a49cb107a27278
optimizely/config_manager.pyhttps://github.com/optimizely/python-sdk/pull/489/files#diff-ce33771c38124033cd0e4e3f889baa756b2c34a0f0977c121e10af81a7fb43b2
View file https://github.com/optimizely/python-sdk/blob/2cad63970395bc1920cc3544af587cf0b2e8f5c0/optimizely/config_manager.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/optimizely/python-sdk/pull/489/{{ revealButtonHref }}
https://github.com/optimizely/python-sdk/pull/489/files#diff-ce33771c38124033cd0e4e3f889baa756b2c34a0f0977c121e10af81a7fb43b2
https://github.com/optimizely/python-sdk/pull/489/files#diff-ce33771c38124033cd0e4e3f889baa756b2c34a0f0977c121e10af81a7fb43b2
https://github.com/optimizely/python-sdk/pull/489/files#diff-ce33771c38124033cd0e4e3f889baa756b2c34a0f0977c121e10af81a7fb43b2
https://github.com/optimizely/python-sdk/pull/489/files#diff-ce33771c38124033cd0e4e3f889baa756b2c34a0f0977c121e10af81a7fb43b2
https://github.com/optimizely/python-sdk/pull/489/files#diff-ce33771c38124033cd0e4e3f889baa756b2c34a0f0977c121e10af81a7fb43b2
https://github.com/optimizely/python-sdk/pull/489/files#diff-ce33771c38124033cd0e4e3f889baa756b2c34a0f0977c121e10af81a7fb43b2
https://github.com/optimizely/python-sdk/pull/489/files#diff-ce33771c38124033cd0e4e3f889baa756b2c34a0f0977c121e10af81a7fb43b2
optimizely/optimizely.pyhttps://github.com/optimizely/python-sdk/pull/489/files#diff-5c705b56b2172cec61792f3216c449622418deb34a98d7771273bdad6443720f
View file https://github.com/optimizely/python-sdk/blob/2cad63970395bc1920cc3544af587cf0b2e8f5c0/optimizely/optimizely.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/optimizely/python-sdk/pull/489/{{ revealButtonHref }}
https://github.com/optimizely/python-sdk/pull/489/files#diff-5c705b56b2172cec61792f3216c449622418deb34a98d7771273bdad6443720f
https://github.com/optimizely/python-sdk/pull/489/files#diff-5c705b56b2172cec61792f3216c449622418deb34a98d7771273bdad6443720f
https://github.com/optimizely/python-sdk/pull/489/files#diff-5c705b56b2172cec61792f3216c449622418deb34a98d7771273bdad6443720f
https://github.com/optimizely/python-sdk/pull/489/files#diff-5c705b56b2172cec61792f3216c449622418deb34a98d7771273bdad6443720f
https://github.com/optimizely/python-sdk/pull/489/files#diff-5c705b56b2172cec61792f3216c449622418deb34a98d7771273bdad6443720f
https://github.com/optimizely/python-sdk/pull/489/files#diff-5c705b56b2172cec61792f3216c449622418deb34a98d7771273bdad6443720f
tests/test_config_manager.pyhttps://github.com/optimizely/python-sdk/pull/489/files#diff-6525428e01c313781192e0e020797a51772bc44fd931b513f6a49cb107a27278
View file https://github.com/optimizely/python-sdk/blob/2cad63970395bc1920cc3544af587cf0b2e8f5c0/tests/test_config_manager.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/optimizely/python-sdk/pull/489/{{ revealButtonHref }}
https://github.com/optimizely/python-sdk/pull/489/files#diff-6525428e01c313781192e0e020797a51772bc44fd931b513f6a49cb107a27278
https://github.com/optimizely/python-sdk/pull/489/files#diff-6525428e01c313781192e0e020797a51772bc44fd931b513f6a49cb107a27278
https://github.com/optimizely/python-sdk/pull/489/files#diff-6525428e01c313781192e0e020797a51772bc44fd931b513f6a49cb107a27278
Please reload this pagehttps://github.com/optimizely/python-sdk/pull/489/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.