Documentation ¶
Index ¶
- func CreateHeadersMap(headers []string) map[string]string
- func CreateHttpClient(transportNetwork, localAddr string, secureSkipVerify bool, ...) (*http.Client, error)
- func GetAndParseJSONResponseFromGoutDoHttpRequest(...) error
- func GetAndParseJSONResponseFromHttpResponse(resp *http.Response, result interface{}) error
- func GetBytesFromGoutDoHttpRequest(...) (int, []byte, error)
- func GetBytesFromHttpResponse(resp *http.Response) ([]byte, error)
- func GetStringFromHttpResponse(resp *http.Response) (string, error)
- func GetStringGoutDoHttpRequest(...) (int, string, error)
- func NewGout(transportNetwork, localAddr string, secureSkipVerify bool, ...) (*dataflow.Gout, error)
- func NewTransport(transportNetwork, localAddrStr string, secureSkipVerify bool, ...) (*http.Transport, error)
- func SplitHostPort(hostPort string) (host, port string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHeadersMap ¶
func CreateHttpClient ¶
func GetBytesFromHttpResponse ¶
GetStringFromHttpResponse 从response获取
func GetStringFromHttpResponse ¶
GetStringFromHttpResponse 从response获取
func NewTransport ¶
func NewTransport(transportNetwork, localAddrStr string, secureSkipVerify bool, proxyType, proxyUrl, user, passwd string) (*http.Transport, error)
NewTransport transportNetwork 网络类型 tcp tcp4 tcp6 localAddr 指定网卡出口
func SplitHostPort ¶ added in v1.3.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.