Interface RSocketRequester.MetadataSpec<S extends RSocketRequester.MetadataSpec<S>>

    • Method Detail

      • metadata

        S metadata​(Object metadata,
                   MimeType mimeType)
        Use this to append additional metadata entries when using composite metadata. An IllegalArgumentException is raised if this method is used when not using composite metadata. The metadata value be a concrete value or any producer of a single value that can be adapted to a Publisher via ReactiveAdapterRegistry.
        Parameters:
        metadata - an Object to be encoded with a suitable Encoder, or a DataBuffer
        mimeType - the mime type that describes the metadata