You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Alberto Aresca <al...@gmail.com> on 2012/04/17 16:27:18 UTC
Httpclient support for PATCH method
Hi all,
A while ago a proposal for the new PATCH http verb has been made (see
http://tools.ietf.org/html/rfc5789)
Is there any plan to support it within the httpclient?
Cheers
--
Alberto Aresca
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: Httpclient support for PATCH method
Posted by David Motes <da...@gmail.com>.
Roll your own...
Here is our DAV MOVE Method just change MOVE To PATCH
import java.net.URI;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.client.methods.HttpRequestBase;
/**
* HTTP DAV MOVE method.
*
* @since 4.0
*/
@NotThreadSafe
public class HttpMove extends HttpRequestBase {
public final static String METHOD_NAME = "MOVE";
public HttpMove() {
super();
}
public HttpMove(final URI uri) {
super();
setURI(uri);
}
/**
* @throws IllegalArgumentException if the uri is invalid.
*/
public HttpMove(final String uri) {
super();
setURI(URI.create(uri));
}
@Override
public String getMethod() {
return METHOD_NAME;
}
}
On Tue, Apr 17, 2012 at 10:27 AM, Alberto Aresca
<al...@gmail.com> wrote:
> Hi all,
>
> A while ago a proposal for the new PATCH http verb has been made (see
> http://tools.ietf.org/html/rfc5789)
>
> Is there any plan to support it within the httpclient?
> Cheers
>
> --
> Alberto Aresca
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: Httpclient support for PATCH method
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Tue, 2012-04-17 at 11:27 -0300, Alberto Aresca wrote:
> Hi all,
>
> A while ago a proposal for the new PATCH http verb has been made (see
> http://tools.ietf.org/html/rfc5789)
>
> Is there any plan to support it within the httpclient?
> Cheers
>
No plans at the moment as usually custom / non-standard methods are
trivial to create as pointed out by David.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org