class documentation
class IdempotencyKeyInterceptor(UnaryUnaryClientInterceptor): (source)
Add idempotency keys to unary-unary gRPC calls.
The idempotency key lets the server prevent duplicate operations.
| Async Method | intercept |
Add an idempotency key to a unary-unary gRPC call. |
async def intercept_unary_unary(self, continuation:
Callable[ [ ClientCallDetails, Req], UnaryUnaryCall | Res], client_call_details: ClientCallDetails, request: Req) -> UnaryUnaryCall | Res:
(source)
ΒΆ
Add an idempotency key to a unary-unary gRPC call.
| Parameters | |
continuation:Callable[ | The next interceptor in the chain or the actual call. |
clientClientCallDetails | Details of the client call, including metadata. |
request:Req | The request payload. |
| Returns | |
UnaryUnaryCall | Res | The result of the gRPC call. |