mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
a7dcd4ce98
commit
7d3f80fbb0
@ -333,6 +333,15 @@ public abstract class HttpBase<T> {
|
|||||||
return (T) this;
|
return (T) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取bodyBytes存储字节码
|
||||||
|
*
|
||||||
|
* @return byte[]
|
||||||
|
*/
|
||||||
|
public byte[] bodyBytes() {
|
||||||
|
return this.bodyBytes;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
final StringBuilder sb = StrUtil.builder();
|
final StringBuilder sb = StrUtil.builder();
|
||||||
|
@ -249,6 +249,7 @@ public class HttpResponse extends HttpBase<HttpResponse> implements Closeable {
|
|||||||
*
|
*
|
||||||
* @return byte[]
|
* @return byte[]
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public byte[] bodyBytes() {
|
public byte[] bodyBytes() {
|
||||||
sync();
|
sync();
|
||||||
return this.bodyBytes;
|
return this.bodyBytes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user