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:
Oleg Kalnichevski 2015-01-08 14:04:04 +00:00
parent 529e1373a5
commit d16152c10f
1 changed files with 21 additions and 0 deletions

View File

@ -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);
}