Versions in this module Expand all Collapse all v0 v0.0.1 Dec 13, 2023 Changes in this version + func ClearQuestLog() + func SetDefaultCacheFunc(t CacheInterface) + func SetDefaultCacheTime(t time.Duration) + func SetDefaultTimeOut(t time.Duration) + func SetQuestLog(f func(c *CURL)) + type CURL struct + Body string + ClientIp string + Cookie_quest []string + CreateTime time.Time + EndTime time.Time + Error error + Header_quest map[string]string + HttpCode int + ParamJson_quest map[string]any + Param_quest map[string]string + StartTime time.Time + Uri string + func New(url string, opts ...OptionFunc) *CURL + func (c *CURL) Authorization(token string) *CURL + func (c *CURL) Cookie(cookie_param []string) *CURL + func (c *CURL) Download(file string) *CURL + func (c *CURL) DownloadIO(f io.Writer) *CURL + func (c *CURL) Get() *CURL + func (c *CURL) Header(h map[string]string) *CURL + func (c *CURL) HeaderKV(k, v string) *CURL + func (c *CURL) Param(m map[string]string) *CURL + func (c *CURL) ParamJson(m map[string]any) *CURL + func (c *CURL) ParamKV(k, v string) *CURL + func (c *CURL) Post() *CURL + func (c *CURL) PostJson() *CURL + func (c *CURL) WithOption(opts ...OptionFunc) *CURL + type CacheInterface interface + Get func(name string) string + Set func(name string, val string, t time.Duration) + type Option struct + type OptionFunc func(c *Option) + func WithCache(t time.Duration) OptionFunc + func WithHttpsContinue(c bool) OptionFunc + func WithIgnoreHeader(k string) OptionFunc + func WithTimeOut(t time.Duration) OptionFunc