Versions in this module Expand all Collapse all v0 v0.1.15 Jan 3, 2023 v0.1.14 Jan 3, 2023 Changes in this version + func SetDefaultSetting(setting BeegoHTTPSettings) + func TimeoutDialer(cTimeout time.Duration, rwTimeout time.Duration) func(net, addr string) (c net.Conn, err error) + type BeegoHTTPRequest struct + func Delete(url string) *BeegoHTTPRequest + func Get(url string) *BeegoHTTPRequest + func Head(url string) *BeegoHTTPRequest + func NewBeegoRequest(rawurl, method string) *BeegoHTTPRequest + func Post(url string) *BeegoHTTPRequest + func Put(url string) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) Body(data interface{}) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) Bytes() ([]byte, error) + func (b *BeegoHTTPRequest) Debug(isdebug bool) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) DoRequest() (resp *http.Response, err error) + func (b *BeegoHTTPRequest) DumpBody(isdump bool) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) DumpRequest() []byte + func (b *BeegoHTTPRequest) GetRequest() *http.Request + func (b *BeegoHTTPRequest) Header(key, value string) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) JSONBody(obj interface{}) (*BeegoHTTPRequest, error) + func (b *BeegoHTTPRequest) Param(key, value string) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) PostFile(formname, filename string) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) Response() (*http.Response, error) + func (b *BeegoHTTPRequest) Retries(times int) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) SetBasicAuth(username, password string) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) SetCheckRedirect(redirect func(req *http.Request, via []*http.Request) error) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) SetCookie(cookie *http.Cookie) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) SetEnableCookie(enable bool) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) SetHost(host string) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) SetProtocolVersion(vers string) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) SetProxy(proxy func(*http.Request) (*url.URL, error)) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) SetTLSClientConfig(config *tls.Config) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) SetTimeout(connectTimeout, readWriteTimeout time.Duration) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) SetTransport(transport http.RoundTripper) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) SetUserAgent(useragent string) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) Setting(setting BeegoHTTPSettings) *BeegoHTTPRequest + func (b *BeegoHTTPRequest) String() (string, error) + func (b *BeegoHTTPRequest) ToFile(filename string) error + func (b *BeegoHTTPRequest) ToJSON(v interface{}) error + func (b *BeegoHTTPRequest) ToXML(v interface{}) error + func (b *BeegoHTTPRequest) XMLBody(obj interface{}) (*BeegoHTTPRequest, error) + type BeegoHTTPSettings struct + CheckRedirect func(req *http.Request, via []*http.Request) error + ConnectTimeout time.Duration + DumpBody bool + EnableCookie bool + Gzip bool + Proxy func(*http.Request) (*url.URL, error) + ReadWriteTimeout time.Duration + Retries int + ShowDebug bool + TLSClientConfig *tls.Config + Transport http.RoundTripper + UserAgent string