|
|
@ -7,7 +7,7 @@ import sig.requests.GETRequest; |
|
|
|
public class client { |
|
|
|
public class client { |
|
|
|
public static void main(String[] args) { |
|
|
|
public static void main(String[] args) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
GETRequest res = new GETRequest("https://postman-echo.com/get"); |
|
|
|
GETRequest res = new GETRequest("https://postman-echo.com/get?foo1=bar1&foo2=bar2"); |
|
|
|
System.out.println(((HttpResponse<String>)res.run()).body()); |
|
|
|
System.out.println(((HttpResponse<String>)res.run()).body()); |
|
|
|
} catch (FailedResponseException e) { |
|
|
|
} catch (FailedResponseException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
|