Proxy Response
proxy / localProxy
This is Python/QuickJS array mode: status, Content-Type, content and optional headers; a fifth slot of 1 marks Base64 content. The Python method is named localProxy, and the third slot may also return bytes.
Per-language differences
Building the URL
Use getProxyUrl(params) to build the URL; the App appends do, siteKey and encodes parameters. In JAR mode without a siteKey, the App looks for the static entry com.github.catvod.spider.Proxy.proxy(Map).
Warning
The App closes a stream after it is delivered. If an exception occurs before you return, close any stream you already opened.
Related: Streams and proxy, local API /proxy.