We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4e12f9 + 54e869a commit b8a943bCopy full SHA for b8a943b
src/main/java/io/github/swnck/request/AbstractRequest.java
@@ -24,7 +24,8 @@ public abstract class AbstractRequest<T extends AbstractRequest<T>> {
24
25
public AbstractRequest(String url, Method method) {
26
this.method = method;
27
- this.url = url;
+
28
+ this.setUrl(url);
29
}
30
31
public AbstractRequest(Method method) {
src/test/java/io/github/swnck/JxRequestTest.java
@@ -9,11 +9,9 @@
9
public class JxRequestTest {
10
@Test
11
void get() {
12
- GetRequest jxRequest = JxRequest.get()
13
- .setUrl("google.com");
+ GetRequest jxRequest = JxRequest.get("google.com");
14
15
JxResponse response = jxRequest.send();
16
- System.out.println(response.toString());
17
assertNotNull(response);
18
19
0 commit comments