public interface Response extends Closeable
Modifier and Type | Method and Description |
---|---|
byte[] |
bytes()
得到字节数组
|
Response |
charset(Charset charset)
设置响应编码
|
Response |
charset(String charset)
设置响应编码
|
Cookie |
getCookie(String name) |
Cookie[] |
getCookies() |
Header |
getHeader(String name) |
Header[] |
getHeaders() |
StatusLine |
getStatusLine() |
InputStream |
stream()
得到流
|
String |
text()
得到文本内容
|
StatusLine getStatusLine()
Header[] getHeaders()
Cookie[] getCookies()
String text()
byte[] bytes()
InputStream stream()
Copyright © 2006–2018 TinyGroup. All rights reserved.