LoggingInterceptor
public class LoggingInterceptor : Interceptor
Debug Logging interceptor
note: Only logs to console when compiled with Debug configuration
-
Declaration
Swift
public enum Level : Int
-
Declaration
Swift
public var level: Level
-
Declaration
Swift
public init(log level: Level)
-
Declaration
Swift
@available(*, deprecated, message: "Use async version instead") public func interceptPublisher(chain: Chain) -> AnyPublisher<HTTPResponse, HTTPClientError>
-
interceptAsync(chain:
Asynchronous) Declaration
Swift
public func interceptAsync(chain: Chain) async throws -> HTTPResponse