Versions in this module Expand all Collapse all v1 v1.0.1 Feb 22, 2022 v1.0.0 Jan 18, 2022 Changes in this version + var ErrorOfEmptyClient = errors.New("client is nil") + func AddParameterToURL(URL string, parameter map[string]string) (string, error) + func Client(tr *http.Transport, timeout time.Duration) *http.Client + func ClientSetCookie(request *http.Request, data map[string]string) + func CloseRsp(response *http.Response) + func CreateToken(payload map[string]interface{}, key string) (string, error) + func GetParameterFromURL(URL *url.URL) (url.Values, error) + func GetRequest2(method string, url string, body io.Reader) (*http.Request, error) + func GetSkipTlsConfig() *tls.Config + func GetTlsConfig(caFilePath string) (*tls.Config, error) + func NewListener(addr string, readTimeout, writeTimeout time.Duration) (net.Listener, error) + func NewRequest(method string, url string, body []byte) (*http.Request, error) + func NewUnixListener(path string, readTimeout, writeTimeout time.Duration) (net.Listener, error) + func ParseToken(tokenStr string, key string) (jwt.MapClaims, error) + func ServerDelCookie(rw http.ResponseWriter, name string) + func ServerGetCookie(request *http.Request, key string) (string, error) + func ServerSetCookie(rw http.ResponseWriter, data map[string]string) + func SetHeader(req *http.Request, data map[string]string) + func StartServer(addr string, handler http.Handler, timeout time.Duration) error + func TLSTransport(tls *tls.Config) *http.Transport + func Transport() *http.Transport + type Conn struct + ReadTimeout time.Duration + WriteTimeout time.Duration + func (c *Conn) Close() error + func (c *Conn) Read(b []byte) (int, error) + func (c *Conn) Write(b []byte) (int, error) + type Listener struct + ReadTimeout time.Duration + WriteTimeout time.Duration + func (l *Listener) Accept() (net.Conn, error)