Allow to use constructor in HTTPRequest
@@ -74,15 +74,11 @@ public class HTTPRequest implements HTTPHead, HTTPGet, HTTPPost, HTTPPut, HTTPPa
HTTPPlugin.getPlugin(); // Ensure plugin is loaded
}
- private HTTPRequest() {
+ public HTTPRequest() {
requester = new HTTPRequester();
requester.start();
}
- public static HTTPRequest create() {
- return new HTTPRequest();
- }
-
@Override
public HTTPResponse HEAD(String uri, List<NameValuePair> params, List<Header> headers) {
return doRequest(uri, createRequest("HEAD", uri, params, headers));
