swift-server / swift-server/async-http-client
Allow HTTPClient to intercept / track multiple redirects
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 1.1k
- Forks
- 156
- PR merge metrics
- No merged PRs in 30d
Description
Title says it all. Tesla's Auth API requires 2 redirects to be followed, one of which has a token in as a query parameter in the URL.
It seems with the current implementation of HTTPClient I can only stop all redirects, and follow them myself.
It would be nice to just have a history available of all redirects following when a request is finished.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by locating HTTPClient's redirect-handling entry point and any existing redirect tests. Define and test how multiple redirects, including query-token URLs, are recorded and exposed after completion while preserving the existing follow-or-stop behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- api, networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100