+doc add missing migration parts to java documentation
This commit is contained in:
parent
c25e0abab6
commit
c24cac2b04
4 changed files with 42 additions and 5 deletions
|
|
@ -185,3 +185,39 @@ The old behaviour can be achieved by explicitly draining the entity:
|
|||
|
||||
response.entity().getDataBytes().runWith(Sink.ignore())
|
||||
|
||||
|
||||
Websocket now consistently named WebSocket
|
||||
------------------------------------------
|
||||
|
||||
Previously we had a mix of methods and classes called ``websocket`` or ``Websocket``, which was in contradiction with
|
||||
how the word is spelled in the spec and some other places of Akka HTTP.
|
||||
|
||||
Methods and classes using the word WebSocket now consistently use it as ``WebSocket``, so updating is as simple as
|
||||
find-and-replacing the lower-case ``s`` to an upper-case ``S`` wherever the word WebSocket appeared.
|
||||
|
||||
Java DSL for Http binding and connections changed
|
||||
-------------------------------------------------
|
||||
|
||||
In order to minimise the number of needed overloads for each method defined on the ``Http`` extension
|
||||
a new mini-DSL has been introduced for connecting to hosts given a hostname, port and optional ``ConnectionContext``.
|
||||
|
||||
The availability of the connection context (if it's set to ``HttpsConnectionContext``) makes the server be bound
|
||||
as an HTTPS server, and for outgoing connections those settings are used instead of the default ones if provided.
|
||||
|
||||
Was::
|
||||
|
||||
http.cachedHostConnectionPool(toHost("akka.io"), materializer());
|
||||
http.cachedHostConnectionPool("akka.io", 80, httpsConnectionContext, materializer()); // does not work anymore
|
||||
|
||||
Replace with::
|
||||
|
||||
http.cachedHostConnectionPool(toHostHttps("akka.io", 8081), materializer());
|
||||
http.cachedHostConnectionPool(toHostHttps("akka.io", 8081).withCustomHttpsContext(httpsContext), materializer());
|
||||
|
||||
|
||||
Framing moved to akka.stream.[javadsl/scaladsl]
|
||||
-----------------------------------------------
|
||||
|
||||
The ``Framing`` object which can be used to chunk up ``ByteString`` streams into
|
||||
framing dependent chunks (such as lines) has moved to ``akka.stream.scaladsl.Framing``,
|
||||
and has gotten a Java DSL equivalent type in ``akka.stream.javadsl.Framing``.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue