Skip to content

1.1.0

Compare
Choose a tag to compare
@DenTelezhkin DenTelezhkin released this 07 Jul 18:29
· 310 commits to main since this release

Added

  • stubbingShouldBeSuccessful property on TRON, that allows setting up globally, will stubs succeed or not.
  • encodingStrategy property on TRON instance, that is used to select encoding type based on HTTP Method.
  • encodingStrategy property on APIRequest, that will be filled with TRON strategy on construction.

By default, for backwards compatibility reasons, we use ParameterEncoding.URL as a default strategy. This will change in next major release of TRON, which will use TRON.RESTEncodingStrategy instead. This encoding strategy uses .JSON encoding for POST, PUT and PATCH requests, and .URL encoding for all other HTTP methods.

Deprecated

  • encoding property on APIRequest. Please use encodingStrategy property instead.