| 程序包 | 说明 |
|---|---|
| net.dongliu.requests |
The request package
|
| 限定符和类型 | 方法和说明 |
|---|---|
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
|
<T> Response<T> |
RawResponse.toResponse(ResponseHandler<T> handler)
Handle response body with handler, return a new response with content as handler result.
|
Response<String> |
RawResponse.toTextResponse()
Convert to response, with body as text.
|
Copyright © 2019. All rights reserved.