Datasets:
ArXiv:
License:
Download data/val/jesusbmx/HttpCli/src/httpcli/adapter/RespBodyString.java from RepoFusion/Stack-Repo: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/datasets/RepoFusion/Stack-Repo/resolve/main/data/val/jesusbmx/HttpCli/src/httpcli/adapter/RespBodyString.java
- Command line
-
hf download hf://datasets/RepoFusion/Stack-Repo/data/val/jesusbmx/HttpCli/src/httpcli/adapter/RespBodyString.java
-
curl -L -o RespBodyString.java https://huggingface.co/datasets/RepoFusion/Stack-Repo/resolve/main/data/val/jesusbmx/HttpCli/src/httpcli/adapter/RespBodyString.java
318 Bytes
| 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(); | |
| } | |
| } | |
| } | |