Skip to content

perf(resp): Reduce the range of GIL locks#21

Merged
0x676e67 merged 2 commits intomainfrom
perf
Feb 14, 2025
Merged

perf(resp): Reduce the range of GIL locks#21
0x676e67 merged 2 commits intomainfrom
perf

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

@0x676e67 0x676e67 commented Feb 14, 2025

This pull request includes several changes to the src/resp.rs file, focusing on improving the handling of response cookies and TLS peer certificates. The most important changes include replacing the PyDict with IndexMap for cookies, modifying the peer_certificate method to return a Vec<u8>, and updating the imports to include IndexMap and TlsInfo.

Improvements to response handling:

  • Replaced the PyDict with IndexMap for the cookies method to improve the handling of response cookies.
  • Modified the peer_certificate method to return a Vec<u8> instead of a Python object, simplifying the retrieval of the TLS peer certificate.

Updates to imports:

  • Added indexmap::IndexMap to the imports to support the new cookies method implementation.
  • Added rquest::TlsInfo to the imports to support the updated peer_certificate method.

kreedzZhao pushed a commit to kreedzZhao/rnet that referenced this pull request Dec 8, 2025
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