Allow Paths in http proxy #224

Closed
opened 2025-12-30 01:22:28 +01:00 by adam · 2 comments
Owner

Originally created by @rohan-datar on GitHub (Oct 21, 2024).

Currently, http proxies for only support a http://<host>:<port> scheme.
From the docs:

When specifying a proxy address, it must have scheme http, and may not contain anything other than a host and port.

Trying to proxy pkl packages through something like Artifactory Remote Repositories does not work as they add a path to the proxy url which is not supported and throws a Java exception when it attempts to resolve.

Allowing proxies to have a http://<host>:<port>/path/to/proxy would be very helpful

Originally created by @rohan-datar on GitHub (Oct 21, 2024). Currently, http proxies for only support a `http://<host>:<port>` scheme. From the docs: > When specifying a proxy address, it must have scheme http, and may not contain anything other than a host and port. Trying to proxy pkl packages through something like [Artifactory Remote Repositories](https://jfrog.com/help/r/jfrog-artifactory-documentation/remote-repositories) does not work as they add a path to the proxy url which is not supported and throws a Java exception when it attempts to resolve. Allowing proxies to have a `http://<host>:<port>/path/to/proxy` would be very helpful
adam closed this issue 2025-12-30 01:22:28 +01:00
Author
Owner

@HT154 commented on GitHub (Oct 21, 2024):

Pkl's HTTP proxy support is for CONNECT-based HTTP forward proxies. These work very differently from something like an Artifactory remote repo, which is a read-through caching reverse proxy.

Supporting mirroring via such a reverse proxy requires some additional handling and is being discussed in SPICE-0002.

@HT154 commented on GitHub (Oct 21, 2024): Pkl's HTTP proxy support is for `CONNECT`-based HTTP forward proxies. These work very differently from something like an Artifactory remote repo, which is a read-through caching reverse proxy. Supporting mirroring via such a reverse proxy requires some additional handling and is being discussed in [SPICE-0002](https://github.com/apple/pkl-evolution/pull/4).
Author
Owner

@bioball commented on GitHub (Oct 22, 2024):

Closing this, but feel free to follow or contribute to SPICE-0002 for your use case!

@bioball commented on GitHub (Oct 22, 2024): Closing this, but feel free to follow or contribute to SPICE-0002 for your use case!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#224