apply(_:to:)

Create an operation, specifying which ServerInterceptor to apply and to which Subject.

ConditionalInterceptor.swift:106
static func apply(_ interceptor: any ServerInterceptor, to subject: Subject) -> ConditionalInterceptor<Interceptor>

Parameters

interceptor

The ServerInterceptor to register with the server.

subject

The Subject to which the interceptor applies.