-
Notifications
You must be signed in to change notification settings - Fork 28
feat: add headers
configuration property
#232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project status has failed because the head coverage (70.79%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #232 +/- ##
==========================================
+ Coverage 70.73% 70.79% +0.05%
==========================================
Files 134 134
Lines 10882 10904 +22
==========================================
+ Hits 7697 7719 +22
Misses 3185 3185 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
WalkthroughREADME.md updated to document setting custom HTTP headers in the OpenFGA Python SDK, including default headers via set_default_header and per-request headers via options.headers, with synchronous client notes and examples. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
headers
configuration property
This pull request adds a
headers
property to the SDK's client configuration class, allowing developers to pass headers that are automatically included in all API requests by default.This pattern aligns the Python SDK with behavior already present in the other SDKs.
References
openfga/sdk-generator#631
Review Checklist
main