AdditionalHeaderInterceptor
public class AdditionalHeaderInterceptor : Interceptor
Simple interceptor that adds additional or changes existing HTTP Headers with given values
-
Declaration
Swift
public init(additionalHeader: [String : String])
-
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