Skip to content

Add SocketAcceptorInterceptor#676

Merged
robertroeser merged 2 commits into
rsocket:developfrom
rstoyanchev:interceptor
Aug 5, 2019
Merged

Add SocketAcceptorInterceptor#676
robertroeser merged 2 commits into
rsocket:developfrom
rstoyanchev:interceptor

Conversation

@rstoyanchev

@rstoyanchev rstoyanchev commented Jul 31, 2019

Copy link
Copy Markdown
Contributor

Currently an RSocketInterceptor can only intercept requests, but has no visibility into connection setup like metadata and data mime types, see #661 (comment). Especially on the server side there is no way for an interceptor to access this information which can be critical (e.g. for a security interceptor).

This pull request adds SocketAcceptorInterceptor and also updates support for SocketAcceptor so both are supported symmetrically.

This commit deprecates the client side
acceptor(BiFunction<ConnectionSetupPayload, RSocket>) and adds support
for SocketAcceptor instead. This makes it possible for a client side
acceptor to be asynchronous too, and allows applying the same acceptor
both client and server side.

Signed-off-by: Rossen Stoyanchev <rstoyanchev@pivotal.io>
This commit adds an interceptor for SocketAcceptor. This provides
access to connection setup information and also allows applying
requester and responder interceptors from one place.

Signed-off-by: Rossen Stoyanchev <rstoyanchev@pivotal.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants