java.lang.Object
io.avaje.http.client.BodyContent
Content of request or response body used for adapting to beans.
This is not used for streaming content.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBodyContent
(String contentType, byte[] content) Create with content type and content. -
Method Summary
Modifier and TypeMethodDescriptionstatic BodyContent
asJson
(byte[] content) Create and return as JSON body content given raw content.byte[]
content()
Return the raw content.Return the content type.
-
Field Details
-
JSON_UTF8
- See Also:
-
-
Constructor Details
-
BodyContent
Create with content type and content.
-
-
Method Details
-
asJson
Create and return as JSON body content given raw content. -
contentType
Return the content type. -
content
public byte[] content()Return the raw content.
-