Skip to content

v0.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 24 Jan 10:14
· 91 commits to master since this release

Improvements:

  • NewClient supports receiving a list of Options that modify clients behavior.
    Initial supported options are:

    • HttpClient(*http.Client) - set custom http.Client to be used
    • Headers(map[string]string) - set custom headers to use in every request (kudos: @Nightapes)
    • UserAgent(string) - set User-Agent identification to be used (#6). This is a shortcut for just setting User-Agent custom header

Deprecations:

  • NewCustomClient is deprecated in favor of NewClient(string, ...Option) with HttpClient(*http.Client) option.
    This method will be removed in future versions.