Integration with gRPC [BETA]
Integration with gRPC [BETA]
Integration with gRPC [BETA]
The SDK can be integrated into gRPC projects.
The automatic interceptor is not supported in gRPC, so you should disable requests interception by setting the PXPolicy/requestsInterceptedAutomaticallyEnabled to false.
In order to include the SDK’s HTTP headers in your gRPC requests, you should add them to your request’s metadata.
Now, use the call option instance when you call your send your gRPC request.
After receiving an error in the server’s response, the gRPC library will throw an exception. pass the information to SDK with the handleResponse function.