artipie / maven-resolver-http3-plugin

HTTP3 resolver for Maven
MIT License
6 stars 2 forks source link

feat: use HTTP/1.1 on HTTP/3 fail #15

Closed olenagerasimova closed 10 months ago

olenagerasimova commented 10 months ago

part of #14 (check description)

Added HTTP/1.1 client along with clients initialization "on request", added simple test. IT test will be added letter.

If request is done via not appropriate protocol version, TimeoutException is thrown and in this case we make request via HTTP/1.1. It will not be correct to re-request in any exception as http client can throw exception in the case of some not success status like 401.