RequestBuilder add Patch support
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1650292 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
529e1373a5
commit
d16152c10f
|
@ -142,6 +142,27 @@ public class RequestBuilder {
|
|||
return new RequestBuilder(HttpHead.METHOD_NAME, uri);
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.4
|
||||
*/
|
||||
public static RequestBuilder patch() {
|
||||
return new RequestBuilder(HttpPatch.METHOD_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.4
|
||||
*/
|
||||
public static RequestBuilder patch(final URI uri) {
|
||||
return new RequestBuilder(HttpPatch.METHOD_NAME, uri);
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.4
|
||||
*/
|
||||
public static RequestBuilder patch(final String uri) {
|
||||
return new RequestBuilder(HttpPatch.METHOD_NAME, uri);
|
||||
}
|
||||
|
||||
public static RequestBuilder post() {
|
||||
return new RequestBuilder(HttpPost.METHOD_NAME);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue