This commit is contained in:
parent
0c7a000c2f
commit
ecf1037b2e
|
@ -170,6 +170,10 @@ public class HttpUtils {
|
||||||
return _send("*/*", HttpResponse.BodyHandlers.ofInputStream());
|
return _send("*/*", HttpResponse.BodyHandlers.ofInputStream());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Reader sendReader() throws IOException {
|
||||||
|
return new InputStreamReader(sendInputStream());
|
||||||
|
}
|
||||||
|
|
||||||
public String sendString() throws IOException {
|
public String sendString() throws IOException {
|
||||||
return _send("*/*", HttpResponse.BodyHandlers.ofString());
|
return _send("*/*", HttpResponse.BodyHandlers.ofString());
|
||||||
}
|
}
|
||||||
|
@ -215,8 +219,4 @@ public class HttpUtils {
|
||||||
public static Request delete(String url) throws URISyntaxException {
|
public static Request delete(String url) throws URISyntaxException {
|
||||||
return new Request(Method.DELETE, url);
|
return new Request(Method.DELETE, url);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws URISyntaxException, IOException {
|
|
||||||
get("https://frohnmeyer-wds.de/doesnt_exxist").send();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user