RFE: Add PATCH to the list of the supported HTTP methods
Andrej Golovnin
andrej.golovnin at gmail.com
Wed Mar 7 08:36:38 UTC 2018
Hi Chris,
> 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?
I don't know how popular is it. We have just started to use it with
one of our services and discovered that we cannot use it with
HttpURLConnection at all. And I thought when we add the support for
PATCH to HttpURLConnection, then it would be nice to have it in HTTP
Client too. When you decided not to add it to HTTP Client, then it is
OK for me too. But I think that HttpURLConnection should be changed.
Best regards,
Andrej Golovnin
More information about the net-dev
mailing list