RFE: Add PATCH to the list of the supported HTTP methods
James Roper
james at lightbend.com
Wed Mar 7 00:55:13 UTC 2018
I don't have any opinion on the matter, but a datapoint to the popularity
of PATCH is its use in the GitHub API:
https://developer.github.com/v3/
GitHub is often looked to as a gold standard for how to write a REST API,
so if they do it, it's likely that many others do too.
On 7 March 2018 at 05:40, Chris Hegarty <chris.hegarty at oracle.com> wrote:
> Hi Andrej,
>
> On 02/03/18 08:28, Andrej Golovnin wrote:
>
>> Hi all,
>>
>> it would be nice if could add PATCH
>> (https://tools.ietf.org/html/rfc5789) to the list of the supported
>> ...
>> - and one for the HTTP Client branch in the JDK sandbox repository
>> which adds PATCH to the HttpRequest builder:
>> java_net_http_HttpRequest_PATCH_method.diff
>>
>
> The JDK HTTP Client has:
> `HttpRequest.Builder::method(String method, BodyPublisher publisher)`
>
> ,so it is currently possible to use the `PATCH` method.
>
> Is `PATCH` sufficiently popular to warrant its own self-named
> method in the request builder?
>
> -Chris.
>
--
*James Roper*
*Senior Octonaut*
Lightbend <https://www.lightbend.com/> – Build reactive apps!
Twitter: @jroper <https://twitter.com/jroper>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20180307/fa45861f/attachment.html>
More information about the net-dev
mailing list