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.
1 parent 0566970 commit b6eafd4Copy full SHA for b6eafd4
client/src/main/java/org/asynchttpclient/RequestBuilder.java
@@ -15,6 +15,8 @@
15
*/
16
package org.asynchttpclient;
17
18
+import io.netty.handler.codec.http.HttpMethod;
19
+
20
/**
21
* Builder for a {@link Request}. Warning: mutable and not thread-safe! Beware
22
* that it holds a reference on the Request instance it builds, so modifying the
@@ -23,7 +25,7 @@
23
25
public class RequestBuilder extends RequestBuilderBase<RequestBuilder> {
24
26
27
public RequestBuilder() {
- this("GET");
28
+ this(HttpMethod.GET.name());
29
}
30
31
public RequestBuilder(String method) {
0 commit comments