public static interface Serializer.Payload
Modifier and Type | Method and Description |
---|---|
okio.ByteString |
byteString()
The bytes of the payload.
|
Optional<String> |
contentType()
An optional content-type
|
Serializer.Payload |
withContentTypeIfAbsent(String contentType)
Create a new
Serializer.Payload based on the content of this instance
but with the given contentType if no contentType is present already. |
okio.ByteString byteString()
Serializer.Payload withContentTypeIfAbsent(String contentType)
Serializer.Payload
based on the content of this instance
but with the given contentType if no contentType is present already.contentType
- The contentType to use if no contentType is presentCopyright © 2016. All rights reserved.