armeria-0.37.0
Breaking changes
-
#395 #407 Hide Guava from the public API and provide the shaded and unshaded JARs
- We do not expose the classes from Guava in our public API anymore. To list a few:
com.google.common.net.MediaTypereplaced withcom.linecorp.armeria.common.MediaType- Run the 'replace in path...' command in your editor or IDE.
com.google.common.collect.Multimapreplaced withjava.util.Map<..., Collection<...>>- Convert a
Multimapinto aMapusingMultimap.asMap().
- Convert a
- The artifact ID of the shaded JARs all end with
-shaded. For example:armeriavs.armeria-shadedarmeria-thriftvs.armeria-thrift-shaded
- We plan to shade more internal dependencies such as Netty in the near future. Please stay tuned.
- We do not expose the classes from Guava in our public API anymore. To list a few:
-
#375 #408 Make
HttpClientrespect the path specified when creating it. For example:HttpClient hc = Clients.newClient("none+http://example.com/foo", HttpClient.class); HttpResponse res = hc.get("/bar"); // This will now send a request to /foo/bar, not /bar
Note: If you were specifying a path when creating an
HttpClientwith an old Armeria, your code may stop to work because of this behavioral change. For example:HttpClient hc1 = Clients.newClient("none+https://api.github.com/zen", HttpClient.class); hc1.get("/zen"); // 404 - the request is sent to /zen/zen HttpClient hc2 = Clients.newClient("none+https://api.github.com/", HttpClient.class); hc2.get("/zen"); // 200 - the request is sent to /zen