Proxy 回传
proxy / localProxy
上例是 Python/QuickJS 一般阵列模式:状态码、Content-Type、内容、选填标头;第 5 格 1 表示 Base64 内容。Python 方法名称是 localProxy,第三格也可直接回传 bytes。
各语言差异
产生网址
使用 getProxyUrl(params) 产生网址,App 自动加入 do、siteKey 并编码参数。JAR 模式没有 siteKey 时,会找 com.github.catvod.spider.Proxy.proxy(Map) 静态入口。
Warning
成功交付后由 App 关闭 stream。若在回传前就发生例外,请自行关闭已开启的 stream,避免泄漏。