You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/manual/releases/release26/migration26/WSMigration26.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,12 @@
1
1
<!--- Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> -->
2
2
# Play WS Migration Guide
3
3
4
-
Play WS is now a standalone project and is available at https://github.com/playframework/play-ws. It can be added to an SBT project with:
4
+
Play WS is now a standalone project and is available at [https://github.com/playframework/play-ws](https://github.com/playframework/play-ws). It can be added to an SBT project with:
The `ning` package has been replaced by the `ahc` package, and the Ning* classes replaced by AHC*.
63
65
66
+
A normal `WSResponse` instance is returned from `stream()` instead of `StreamedResponse`. You should call `response.bodyAsSource` to return the streamed result.
67
+
64
68
### Java
65
69
66
70
In Java, the `play.libs.ws.WS` class has been deprecated. An injected `WSClient` instance should be used instead.
A normal `WSResponse` instance is returned from `stream()` instead of `StreamedResponse`. You should call `response.getBodyAsSource()` to return the streamed result.
0 commit comments