T - the body type.public interface BodyParser<T>
HTTPRequest.| Modifier and Type | Method and Description |
|---|---|
T |
parseBody(java.io.InputStream inputStream,
java.lang.String contentType)
Parse the body.
|
T parseBody(java.io.InputStream inputStream, java.lang.String contentType) throws java.io.IOException
inputStream - the body InputStream.contentType - the "content-type" header of the request.java.io.IOException - when an IOException occurs during the parsing.