psf / psf/requests

Avoid unnecessary data collection conversion by making use of urllib3's HTTPHeaderDict for request headers

Open
#5,498 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
54.3k
Forks
10.4k
Avg merge
16h 43m
Merged PRs (30d)
3

Description

Avoid unnecessary data collection conversion by making use of urllib3's HTTPHeaderDict for request headers & response headers. Currently request http headers are placed in a CaseInsensitiveDict but before a request is made the headers are converted to urllib3's HTTPHeaderDict & similar seems to occur for responses (in reverse).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how request and response headers move between Requests and urllib3, comparing CaseInsensitiveDict with urllib3's HTTPHeaderDict in the linked files. Done means unnecessary header conversions are removed while request and response header behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.