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: guide/guide/.js/src/main/assets/pages/rest.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -680,7 +680,7 @@ serializable as `HttpBody`.
680
680
681
681
### Result serialization
682
682
683
-
Result type of every REST API method is wrapped into `Try` (in case the method throws an exception)
683
+
Result type of every non-streaming REST API method is wrapped into `Try` (in case the method throws an exception)
684
684
and translated into `Task[RestResponse]`. This means that the macro engine looks for an implicit instance of
685
685
`AsRaw[Task[RestResponse], Try[R]]` and `AsReal[Task[RestResponse], Try[R]]` for every HTTP method with result type `R`.
686
686
@@ -703,7 +703,10 @@ derived from `GenCodec` instance.
703
703
704
704
Ultimately, if you don't want to use `Future`s, you may replace it with some other asynchronous wrapper type,
705
705
e.g. Monix Task or some IO monad.
706
-
See [supporting result containers other than `Future`](#supporting-result-containers-other-than-future), [streaming serialization workflow](#streaming-serialization-workflow).
706
+
See [supporting result containers other than `Future`](#supporting-result-containers-other-than-future).
707
+
708
+
See [streaming serialization workflow](#streaming-serialization-workflow) for details on `monix.reactive.Observable`
709
+
support in streaming REST API methods.
707
710
708
711
### Customizing serialization
709
712
@@ -946,8 +949,8 @@ computation which yields a `RestResponse` when run.
946
949
947
950
### Implementing a server
948
951
949
-
An existing implementation of REST API trait can be easily turned into a `HandleRequest`
950
-
function using`RawRest.asHandleRequest`.
952
+
An existing implementation of REST API trait can be easily turned into a function using
0 commit comments