| 程序包 | 说明 |
|---|---|
| net.dongliu.requests |
| 限定符和类型 | 方法和说明 |
|---|---|
Response<byte[]> |
RawResponse.toBytesResponse()
Convert to response, with body as byte array
|
Response<File> |
RawResponse.toFileResponse(Path path)
Write response body to file, and return response contains the file.
|
<T> Response<T> |
RawResponse.toJsonResponse(Class<T> cls)
Convert http response body to json result
|
<T> Response<T> |
RawResponse.toJsonResponse(TypeInfer<T> typeInfer)
Convert http response body to json result
|
Response<String> |
RawResponse.toTextResponse()
Convert to response, with body as text.
|
Copyright © 2017. All rights reserved.