Versions in this module Expand all Collapse all v0 v0.0.2 Apr 19, 2015 v0.0.1 Jan 6, 2016 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) 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) SendOut() (*http.Response, error) + func (b *BeegoHttpRequest) SetBasicAuth(username, password string) *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 + type BeegoHttpSettings struct + ConnectTimeout time.Duration + DumpBody bool + EnableCookie bool + Gzip bool + Proxy func(*http.Request) (*url.URL, error) + ReadWriteTimeout time.Duration + ShowDebug bool + TlsClientConfig *tls.Config + Transport http.RoundTripper + UserAgent string