| Modifier and Type | Field and Description |
|---|---|
private InputStream |
body
body stream
|
private Map<String,List<String>> |
headers
请求头
|
private boolean |
success
是否成功
|
| Constructor and Description |
|---|
SimpleHttpResponse() |
| Modifier and Type | Method and Description |
|---|---|
SimpleHttpResponse |
body(byte[] body) |
String |
getBody()
获取body,默认UTF-8编码
|
String |
getBody(Charset charset)
获取body,自动关闭输入流
|
private boolean success
private InputStream body
public String getBody()
getBody(Charset)public String getBody(Charset charset)
charset - 编码格式public SimpleHttpResponse body(byte[] body)
Copyright © 2022. All rights reserved.