[ 
https://issues.apache.org/jira/browse/JCR-5122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17911579#comment-17911579
 ] 

Julian Reschke commented on JCR-5122:
-------------------------------------

The Java HTTP Client does not provide an API that would allow the client code 
to inspect 1xx messages, so they will be consumed properly, but the client will 
not have information about what was sent by the server.

Apache HC 5 has that capability (although complex to use).

See https://github.com/greenbytes/java-http-1xx-tests

> Get rid of Apache HTTP Client dependency
> ----------------------------------------
>
>                 Key: JCR-5122
>                 URL: https://issues.apache.org/jira/browse/JCR-5122
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-spi2dav, jackrabbit-webdav
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Instead of Apache HTTP Client (in the outdated 4.5.x version) we should 
> leverage the Java-built-in HTTP Client: 
> https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpClient.html
> See also https://hc.apache.org/status.html
> bq. Users of HttpClient 4.x are strongly encouraged to migrate to HttpClient 
> 5.x
> Such a change cannot be backwards-compatible as the exposed API (e.g. 
> https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/client/methods/BaseDavRequest.java)
>  leverages Apache HTTP Components classes (most prominently extends 
> {{org.apache.http.client.methods.HttpEntityEnclosingRequestBase}}).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to