Interceptors
-
Implementation of a request interceptor which handles authentication. Currently there are four different authentication methods provided which are
See morenone
,basicAuthentication
,bearerToken
andcustom
. To be able to be highly flexible to also being able to switch between authentication methods, we provided the possibility to pass in anautoclosure
which is evaluated when this request is being intercepted.Declaration
Swift
public final class AuthenticationInterceptor : Interceptor
-
Implementation of a request interceptor which adds header fields to the request.
See moreDeclaration
Swift
public class HeaderFieldsInterceptor : Interceptor
-
Implementation of a request interceptor which logs the request information.
See moreDeclaration
Swift
public final class LoggingInterceptor : Interceptor