Datasets:
ArXiv:
License:
| package httpcli.adapter; | |
| import httpcli.ResponseBody; | |
| public class RespBodyString implements RespBodyAdapter<String> { | |
| public String parse(ResponseBody respBody) throws Exception { | |
| try { | |
| return respBody.string(); | |
| } finally { | |
| respBody.close(); | |
| } | |
| } | |
| } | |