Skip to content

[Feat]: Support early return from client interceptors #130

@ishymko

Description

@ishymko

Is your feature request related to a problem? Please describe.

It'd be convenient to implement caching via interceptors, so that transport call can be skipped.

Describe the solution you'd like

Generalized early return mechanism for both before and after methods so that it can short-circuit to some result provided by interceptor.

For consistency it may also be beneficial to run after for corresponding before executed before early return was triggered (although it may be a configurable behavior).

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions