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