We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ca427d commit 8c36594Copy full SHA for 8c36594
providers/grizzly/src/main/java/com/ning/http/client/providers/grizzly/GrizzlyResponse.java
@@ -136,10 +136,18 @@ public String getResponseBodyExcerpt(int maxLength) throws IOException {
136
*/
137
public String getResponseBody() throws IOException {
138
139
- return getResponseBody(Charsets.DEFAULT_CHARACTER_ENCODING);
+ return getResponseBody(null);
140
141
}
142
143
+ /**
144
+ * @return the response body as a Grizzly {@link Buffer}.
145
+ */
146
+ @SuppressWarnings("UnusedDeclaration")
147
+ public Buffer getResponseBodyAsBuffer() {
148
+ return responseBody;
149
+ }
150
+
151
/**
152
* {@inheritDoc}
153
0 commit comments