swift-server / swift-server/async-http-client
redirect configuration is only available top-level on HTTPClient
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 1.1k
- Forks
- 156
- PR merge metrics
- No merged PRs in 30d
Description
Whether (and how many times) you want to redirect is usually a setting that you want to be able to set per request and not globally per HTTPClient. Unfortunately, from what I can tell right now, we only allow setting this setting globally which is not practical given the fact that many client need to choose how they handle redirects, yet a single HTTPClient should be widely shared across the application.
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
Start by tracing how HTTPClient stores redirect configuration and how requests are constructed. Determine the existing redirect behavior and identify the request API involved; the work is done when redirect handling can be selected per request while a single HTTPClient remains shareable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- api, backend, networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100