-
Notifications
You must be signed in to change notification settings - Fork 188
Add capture_response_body and capture_request_body to httpx
#769
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
Add capture_response_body and capture_request_body to httpx
#769
Conversation
Deploying logfire-docs with
|
| Latest commit: |
556bf49
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://de8fa95a.logfire-docs.pages.dev |
| Branch Preview URL: | https://add-capture-request-body-and.logfire-docs.pages.dev |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #769 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 137 137
Lines 10925 10873 -52
Branches 781 772 -9
=========================================
- Hits 10925 10873 -52 ☔ View full report in Codecov by Sentry. |
b93f416 to
208f3aa
Compare
| @cached_property | ||
| def text(self) -> str: | ||
| return decode_body(self.content, self.content_type_charset) | ||
| return self.content.decode(self.content_type_charset) |
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.
Please inline this property, it's now simple enough that it's not useful to users, the fact that it can raise errors can surprise users, and it doesn't actually need to be cached.
No description provided.