spring-projects / spring-projects/spring-framework

Add RSocket Interceptors

Open
#23,311 1 comment 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: messaging type: enhancement
Dominant language
Java
Stars
60.2k
Forks
38.8k
Avg merge
5d 2h
Merged PRs (30d)
27

Description

Affects: 5.2.0.BUILD-SNAPSHOT

The WebClient supports an ExchangeFilterFunction that allows intercepting the request/response. WebClient also allows providing attributes that can be used by ExchangeFilterFunction for processing. In combination this allows a user to provide an OAuth token via the attributes and have an ExchangeFilterFunction add the token to the request. The ExchangeFilterFunction can also refresh the token (a blocking operation) if the token is expired before sending the original request.

It would be nice to have the ability to have similar features with the RSocket support.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing WebClient support for ExchangeFilterFunction and request attributes, then compare it with the RSocket support. Define how RSocket interception should provide equivalent request/response handling, attributes, and token-refresh behavior. Done means the RSocket API supports the requested interception features with documented behavior and coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
api, backend, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.