Proxy
An HTTP forward proxy and TCP connection tunneling.
Installation
Section titled “Installation”composer config repositories.localzet-proxy vcs https://github.com/localzet/Proxycomposer require localzet/proxy:dev-mainHTTP forward proxy
Section titled “HTTP forward proxy”localzet\Proxy extends Server; its constructor takes socketName and socketContext and defaults to six processes. The handler parses the request line, creates an AsyncTcpConnection to the host/port and pipes both directions. This is a forward proxy, not a service-routing reverse proxy.
The current handler has no authorization/destination policy and its onError callback is empty. Keep the listener isolated until ACLs, internal/metadata address restrictions, error handling and CONNECT/plain HTTP tests are implemented. This describes existing code rather than a production-ready configuration.
Requirements
Section titled “Requirements”- localzet/server: ^4.1
- php: >=8.1
Source · AGPL-3.0