Skip to content

v0.19.0

Choose a tag to compare

@xgfone xgfone released this 20 Apr 07:55
· 9 commits to master since this release
  • Refactor the inner implementation.
  • Added:
    • Add the BaseURL, Do methods for Client.
    • Add the Doer interface instead of *http.Client.
  • Removed:
    • Remove the header constants.
    • Remove the ToError method from the Response type.
    • Remove the XxxJSON and XxxJSONContent functions, and use XxxContext instead.
    • Remove the unused Decoder type, and the CloseBody, GetContentType, NewRequestWithContext functions.
  • Changed:
    • The Hook interface returns a new error type argument.
    • Remove the first argument code from the NewError function signature.