Skip to content

Releases: ghosind/go-request

v0.2.1

23 Aug 13:37
v0.2.1
c7bedfa
Compare
Choose a tag to compare

Request v0.2.1

New Features

  • Decodes compressed body (gzip and deflate).
  • Add maximum redirects.
  • Add response status code validator.

Changes

  • Make Client's Timeout field as a public field.
  • Add Parameters field to Client.
  • Update getContentType.

v0.2.0

14 Aug 12:15
v0.2.0
0805f2c
Compare
Choose a tag to compare

go-request v0.2.0

Breaking Changes

  • Skip client's header fields if same key was defined in the request options.
  • Do not encoding body value if it is a byte slice or a string.
  • Rename RequestTimeoutNone to RequestTimeoutNoLimit.
  • The ContentType value of the request options accept "json" or empty only.

New Features

  • Add custom user agent field in the request options and client config.
  • Add HTTP BasicAuth support.

Updates and Fixes

  • Ignore the base url field if url is absolute.
  • Make content as uncancellable if no timeout limitation.
  • Skip nil field in the headers.
  • Fix nil pointer error for wrapper functions.
  • Add more validation.
  • Add more test cases.

v0.1.0

16 May 14:01
v0.1.0
c32bfac
Compare
Choose a tag to compare
v0.1.0: the first release.