esoe 2 years ago
parent
commit
53a9feb7db
  1. 2
      src/main/java/ru/molokoin/sourceListener/SourceListener.java
  2. BIN
      target/classes/ru/molokoin/sourceListener/SourceListener.class

2
src/main/java/ru/molokoin/sourceListener/SourceListener.java

@ -11,12 +11,14 @@ public class SourceListener { @@ -11,12 +11,14 @@ public class SourceListener {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("http://molokoin.ru:3000/esoe/molokoin-client"))
//.uri(URI.create("http://molokoin.ru:3000/esoe/molokoin-client/archive/master.zip"))
.GET() // GET is default
.build();
try {
HttpResponse<String> response = client.send(request,
HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.headers());
System.out.println(response.body());

BIN
target/classes/ru/molokoin/sourceListener/SourceListener.class

Binary file not shown.
Loading…
Cancel
Save