Interceptors

  • Implementation of a request interceptor which handles authentication. Currently there are four different authentication methods provided which are none, basicAuthentication, bearerToken and custom. To be able to be highly flexible to also being able to switch between authentication methods, we provided the possibility to pass in an autoclosure which is evaluated when this request is being intercepted.

    See more

    Declaration

    Swift

    public final class AuthenticationInterceptor : Interceptor
  • Implementation of a request interceptor which adds header fields to the request.

    See more

    Declaration

    Swift

    public class HeaderFieldsInterceptor : Interceptor
  • Implementation of a request interceptor which logs the request information.

    See more

    Declaration

    Swift

    public final class LoggingInterceptor : Interceptor