Versions in this module Expand all Collapse all v1 v1.0.0 Dec 16, 2024 Changes in this version + type DefaultHttpClient struct + func NewDefaultHttpClient() *DefaultHttpClient + func (cli *DefaultHttpClient) DoRequest(method, rqUrl string, reqBody string, headers map[string]string) (data []byte, err error) + func (cli *DefaultHttpClient) SetProxy(proxy string) error + func (cli *DefaultHttpClient) SetTimeout(sec int64) + type FastHttpCli struct + func NewFastHttpCli() *FastHttpCli + func (cli *FastHttpCli) DoRequest(method, rqUrl string, reqBody string, headers map[string]string) (data []byte, err error) + func (cli *FastHttpCli) SetProxy(proxy string) error + func (cli *FastHttpCli) SetTimeout(sec int64) + type IHttpClient interface + DoRequest func(method, rqUrl string, reqBody string, headers map[string]string) (data []byte, err error) + SetProxy func(proxy string) error + SetTimeout func(sec int64) + var Cli IHttpClient