swift-server / swift-server/async-http-client

redirect configuration is only available top-level on HTTPClient

Open
#196 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/enhancement
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.