All Versions
10
Latest Version
Avg Release Cycle
80 days
Latest Release
1534 days ago

Changelog History

  • v0.8.0

    December 25, 2016
    • ➕ Add Request.Hooks for supports before and after request hooks (via #26)
    • ➕ Add var ErrMaxRedirect = errors.New("Exceeded max redirects")
  • v0.7.0

    November 07, 2016
    • ➕ Add auto decompress deflated body (via [#23][#23]. thanks [@DavidCai1993][@DavidCai1993])
  • v0.6.0

    September 04, 2016
    • ✂ Remove vendor/, use glide instead

    API Changes

    • ➕ Add var DefaultClient = new(http.Client)
    • 👌 Support NewArgs(nil)
    • 👌 Support NewRequest(nil)
    • 👌 Support GET(url, nil), POST(url, nil), ...
  • v0.5.1

    June 05, 2016
    • ➕ Add vendor/
  • v0.5.0

    November 15, 2015

    API Changes

    • Add func (req *Request) PostForm(url interface{}, data interface{}) (resp *Response, err error)
    • ➕ Add func (req *Request) Reset()
  • v0.4.0

    November 15, 2015

    API Changes

    • type Request struct add Body field
    • ➕ Add new variables:
      • DefaultHeaders
      • DefaultContentType
      • DefaultJsonType
      • DefaultRedirectLimit
      • DefaultUserAgent
  • v0.3.1

    September 29, 2015
    • ⚡️ Updated docs
    • 👌 Improve code
    • 🛠 No API change, No bugfix
  • v0.3.0

    February 11, 2015

    API Changes

    • ➕ Add type Request struct, recommend use it instead of Args
    • Add func NewRequest(c *http.Client) *Request
    • Add func (req *Request) Get(url interface{}) (resp *Response, err error)
    • Add func (req *Request) Head(url interface{}) (resp *Response, err error)
    • Add func (req *Request) Post(url interface{}) (resp *Response, err error)
    • Add func (req *Request) Put(url interface{}) (resp *Response, err error)
    • Add func (req *Request) Patch(url interface{}) (resp *Response, err error)
    • Add func (req *Request) Delete(url interface{}) (resp *Response, err error)
    • Add func (req *Request) Options(url interface{}) (resp *Response, err error)
  • v0.2.0

    January 17, 2015

    API Changes

    • ➕ Add Args.Proxy for support HTTP/HTTPS/SOCKS5 proxy
    • ➕ Add Args.BasicAuth for Support HTTP Basic Authentication
    • Add func (resp *Response) URL() (*url.URL, error)
    • ➕ Add var DefaultRedirectLimit = 10

    🛠 Bugfixes

    • 🛠 Fix "http.Client don't use original Header when it do redirect" #6
  • v0.1.0

    January 08, 2015
    • 🎉 Initial Release