Class: Griffin::Interceptors::Client::XRequestIdInterceptor
- Inherits:
-
GRPC::ClientInterceptor
- Object
- GRPC::ClientInterceptor
- Griffin::Interceptors::Client::XRequestIdInterceptor
- Defined in:
- lib/griffin/interceptors/client/x_request_id_interceptor.rb
Constant Summary collapse
- KEY =
'x-request-id'
Instance Method Summary collapse
- #request_response(call: nil) ⇒ Object (also: #server_streamer, #client_streamer, #bidi_streamer)
Instance Method Details
#request_response(call: nil) ⇒ Object Also known as: server_streamer, client_streamer, bidi_streamer
11 12 13 14 |
# File 'lib/griffin/interceptors/client/x_request_id_interceptor.rb', line 11 def request_response(call: nil, **) call.[KEY] = SecureRandom.uuid yield end |