Package com.inrupt.client
Interface Request.BodyPublisher
- Enclosing class:
- Request
public static interface Request.BodyPublisher
An API for serializing an HTTP Request.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Get the length of the HTTP Request.getBytes()
Get the serialized bytes for an HTTP Request.
-
Method Details
-
getBytes
ByteBuffer getBytes()Get the serialized bytes for an HTTP Request.- Returns:
- the serialized request body
-
contentLength
long contentLength()Get the length of the HTTP Request.- Returns:
- the request length
-