Static Methodgrpc-swift 2.0.0GRPCCore
apply(_:to:)
Create an operation, specifying which ServerInterceptor
to apply and to which Subject
.
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 theinterceptor
applies.