Closed
Description
Until rsocket/rsocket-java#636, RSocketFactory
supported only Function<RSocket, RSocket>
for client side responders, which meant they had no access to the MimeType
for the connection unless they were a) anonymous (or otherwise session scoped), and b) the MimeType
was passed to them.
In the latest snapshots RSocketFactory
provides access to the ConnectionSetupPayload
on the client side too via a BiFunction
. We can now change MessageHandlerAcceptor
to get the data MimeType
for the connection regardless of where it's used (client or server).
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
rstoyanchev commentedon May 29, 2019
The above took care of the client-side responders, but not the client-side requester. For example if the application configures mime types via
Consumer<RSocketFactory.ClientRSocketFactory>
onRSocketRequest.Builder
, the builtRSocketRequester
would be unaware of the change.[-]Client side use of ConnectionSetupPayload for RSocket[/-][+]Ensure access to configured mime types in client-side RSocket requester or responder[/+]