Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64ToUint8 ¶
func GenerateKeyPair ¶
From sing-box return privateKey, publicKey and error
func GetEnvSocksAddr ¶
func GetEnvSocksAddr() string
func Ints2Base64 ¶
Types ¶
type HTTPClient ¶
type HTTPClient interface {
RestrictedTLS()
ModernTLS()
PinnedTLS12()
PinnedSHA256(sumHex string)
TrySocks5(socksAddr string)
KeepAlive()
NewRequest() HTTPRequest
Close()
}
func NewHttpClient ¶
func NewHttpClient() HTTPClient
type HTTPRequest ¶
Click to show internal directories.
Click to hide internal directories.