You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
458 B
16 lines
458 B
package sig;
|
|
import java.net.http.HttpResponse;
|
|
|
|
import sig.exceptions.FailedResponseException;
|
|
import sig.requests.GETRequest;
|
|
|
|
public class client {
|
|
public static void main(String[] args) {
|
|
try {
|
|
GETRequest res = new GETRequest("https://postman-echo.com/get");
|
|
System.out.println(((HttpResponse<String>)res.run()).body());
|
|
} catch (FailedResponseException e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
|