You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement your own TNLBackoffSignaler to customize behavior ... or ...
Default will use TNLSimpleBackoffSignaler which will signal on HTTP 503
2.12.0
Abstract out Service Unavailable Backoff Behavior for customization to be applied
See [TNLGlobalConfiguration serviceUnavailableBackoffBehaviorProvider] for providing a custom backoff behavior
Implement your own TNLServiceUnavailableBackoffBehaviorProvider to customize behavior
Due to Service Unavailable signaling being opaque, only the HTTP Headers and the URL can be provided
Default will use TNLSimpleServiceUnavailableBackoffBehaviorProvider
Exact same behavior as before (introduced in TNL prior to v2.0 open sourcing)
2.11.0
Change the TNLURLSessionAuthChallengeCompletionBlock arguments
Leave the disposition parameter
Change the credentials parameter of NSURLCredentials to be credentialsOrCancelContext of id
This will permit TNLAuthenticationChallengeHandler instance to be able to cancel the challenge and provide extra context in the resulting error code
Twitter will use this to cancel 401 login auth challenges when we don't want a redundant request to be made (since it just yields the same response)
This is to facilitate working around the behavior in NSURLSession where an HTTP 401 response with WWW-Authenticate header will always be transparently be retried (even when unmodified yielding the identical 401 response).
An additionaly problem is that canceling the 401 response will discard the response's body. If there is information needed in the response body, it will be lost.
Twitter has updated its WWW-Authenticate header responses to include additional metadata since the response body cannot be used.
Whenever a TNLRetryPolicyProvider would yield a retry, that retry will be delayed by the longer of 2 things:
The delay provided by the retry policy provider (minimum of 100 milliseconds)
Waiting for all dependencies on the TNLRequestOperation to complete
Normally, all dependencies of a retrying TNLRequestOperation will be complete before it has started but it is now possible to add dependencies after the request operation has already started to increase the dependencies on a retry starting.
2.9.0
Introduce tnlcli, a command-line-interface for TNL
Like cURL but with TNL features
Verbose mode provides all TNL logging to stdout / stderr along with lots of other details