public class OkHttpRes extends AbstractHttpRes
| 构造器和说明 |
|---|
OkHttpRes(okhttp3.Response response) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
bytes() |
String |
content_type() |
Set<String> |
cookie_names() |
String |
cookie(String key) |
String |
cookie(String key,
String val) |
Map<String,String> |
cookies() |
Set<String> |
header_names() |
String |
header(String key) |
String |
header(String key,
String val) |
Map<String,String> |
headers() |
String |
message() |
<T> T |
object(Class<T> clazz) |
int |
status() |
InputStream |
stream() |
String |
string() |
boolean |
success() |
String |
url() |
charset, content_disfilename, content_dispositon, content_length, content_range, cookie_exist, date, etag, expires, file, file, file, file, header_exist, is_chunked, last_modified, location, on_error, on_finish, on_start, support_gzip, support_rangepublic boolean success()
public int status()
public String message()
public String url()
public String content_type()
public byte[] bytes()
public String string()
public <T> T object(Class<T> clazz)
public InputStream stream()
Copyright (c) 2002-2020 Luther Inc.