aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio/grpc/_interceptor.py
Commit message (Collapse)AuthorAge
* Pre-fix python3 pylint failuresGravatar Eric Gribkoff2018-12-06
|
* Fix Python blocking interceptors facing RpcErrorGravatar Mehrdad Afshari2018-11-28
| | | | | RpcError should be returned from the continuation intact, not raised.
* Add wait-for-ready semanticsGravatar Lidi Zheng2018-11-06
| | | | | | * Include unit tests to test default behaviour, disable behaviour, enable behaviour of the wait-for-ready mechanism * Import flags constants from grpc_types.h * Use WaitGroup to wait for TRANSIENT_FAILURE state in unit test
* Refactor: reorderGravatar Mehrdad Afshari2018-06-14
|
* Refactor: avoid calling with_call APIGravatar Mehrdad Afshari2018-06-14
| | | | | | | Avoid calling the public self.with_call API internally and opt for sharing the method body in a separate private method and calling that instead.
* Re-raise grpc.RpcError instead of eating itGravatar Mehrdad Afshari2018-06-13
|
* Refactor: rename _LocalFailure to _FailureOutcomeGravatar Mehrdad Afshari2018-06-13
|
* Optimize blocking intercepted stream-unary callsGravatar Mehrdad Afshari2018-06-13
| | | | | | | | Change the blocking stream-unary call code path to rely on the underlying synchronous API, as opposed to calling the Future-based underlying async API and invoking `.result()` on the returned Future object immediately, which can be resource-intensive.
* Optimize blocking intercepted unary-unary callsGravatar Mehrdad Afshari2018-06-13
| | | | | | | | Change the blocking unary-unary call code path to rely on the underlying synchronous API, as opposed to calling the Future-based underlying async API and invoking `.result()` on the returned Future object immediately, which can be resource-intensive.
* Implement abstract methods _LocalFailure inheritsGravatar Mehrdad Afshari2018-06-07
|
* Fix arguments-differ pylint warningGravatar Mehrdad Afshari2018-06-07
|
* Add grpc.Channel.closeGravatar Nathaniel Manista2018-05-02
|
* Relax call details interface from interceptorGravatar Mehrdad Afshari2018-01-21
| | | | | | | | | | | | | | | | | A gRPC Python client interceptor is passed an instance of a class that implements the ClientCallDetails interface. The interceptor can choose to create its own object that implements the interface, and pass it back to the continuation invoked by the interceptor. To make it easy to add additional attributes to call details, without breaking user code that hardcode the attributes required by the interface, instead of interospecting the object passed to the interceptor at runtime, and to ease authorship of interceptors that want to keep some attributes intact and not care about them, we relax the requirements on the object that is expected to get passed by the interceptor and let the user omit some attributes. Omitted attributes will be replaced by the original value of the attribute given to the interceptor.
* Upgrade yapf to 0.20.0Gravatar Mehrdad Afshari2018-01-02
| | | | Upgrade yapf version to 0.20.0 and reformat Python files.
* Add gRPC Python client-side interceptor machineryGravatar Mehrdad Afshari2017-12-12
|
* Add gRPC Python service-side interceptor machineryGravatar Mehrdad Afshari2017-12-12