S
- a self reference to the spec typepublic static interface RSocketRequester.MetadataSpec<S extends RSocketRequester.MetadataSpec<S>>
Modifier and Type | Method and Description |
---|---|
S |
metadata(Object metadata,
MimeType mimeType)
Use this to append additional metadata entries when using composite
metadata.
|
S metadata(Object metadata, MimeType mimeType)
IllegalArgumentException
is raised if this
method is used when not using composite metadata.metadata
- an Object to be encoded with a suitable
Encoder
, or a
DataBuffer
mimeType
- the mime type that describes the metadata