proxyutil

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package proxyutil 构造支持 CLI 全部既有代理 scheme 的标准库 HTTP transport:http/https 与 socks5/socks5h 由 net/http 原生支持,socks4 与 socks4a 由本包实现拨号握手。仅依赖标准库,供图片读取与反搜 provider 复用 JavDB transport 相同的代理契约。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transport

func Transport(proxyURL string) (http.RoundTripper, error)

Transport 返回使用 proxyURL 的标准库 RoundTripper;空 proxy 返回 nil (调用方回退 http.DefaultClient)。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL