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

[Question] Does AHC's Proxy configuration support PAC file processing by default?

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

Nobody has claimed this yet.

Dominant language
Swift
Stars
1.1k
Forks
156
PR merge metrics
No merged PRs in 30d

Description

I know that there is the capability to specify an HTTPClient.Configuration.Proxy configuration that accepts a host, port, and authorization set of properties of a single server. But I'm wondering if, given a PAC file URL endpoint, can AHC do all the heavy lifting of fetching the PAC file content, parsing the rules, and sending requests to the proxy by default?

I think the answer is no this is not currently supported based on my quick read over of the code, but figured I'd ask in case I was missing something.

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 inspecting HTTPClient.Configuration.Proxy and the existing proxy-handling entry points. Confirm whether PAC URL fetching, rule parsing, and proxy selection are present; the issue currently defines no files, tests, or implementation acceptance criteria. Done for this issue would first require a maintainer decision on whether PAC support is desired and what behavior it should provide.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.