Improve pickling of HttpResponse instances
When pickling a HTTPResponse, rather than pickling all of its attributes just store what is needed for the creation of a new HttpResponse with the correct content, status code and headers.
See related discussion on ticket #23895 and its PR.
Change History
(16)
Component: |
Core (Serialization) → HTTP handling
|
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to tigicion
|
Status: |
new → assigned
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Cc: |
Keryn Knight added
|
Patch needs improvement: |
set
|
Cc: |
Anvesh Mishra added
|
Owner: |
changed from tigicion to Anvesh Mishra
|
Needs tests: |
unset
|
Patch needs improvement: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Type: |
Bug → Cleanup/optimization
|
Has patch: |
unset
|
Resolution: |
fixed
|
Status: |
closed → new
|
Triage Stage: |
Ready for checkin → Accepted
|
Cc: |
Ülgen Sarıkavak added
|
Thanks, it's worth adding that pickling
HttpResponse
with CBV crashes: