public String body() throws IOException {
return Streams.toString(input, charset());
}
public Charset charset() {
ContentType contentType = ContentType.of(this);
if (contentType == null || contentType.charset() == null) {
return Charsets.ISO_8859_1;
}
return contentType.charset();
}