-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2552 from tdroxler/feature/vertx-reactive-streams
Use `Reactive Streams` to add stream support to `VertxFutureServerInterpreter`
- Loading branch information
Showing
6 changed files
with
39 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
server/vertx-server/src/main/scala/sttp/tapir/server/vertx/streams/package.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package sttp.tapir.server.vertx | ||
|
||
import io.vertx.core.buffer.Buffer | ||
import io.vertx.core.streams.ReadStream | ||
|
||
package object streams { | ||
|
||
def reactiveStreamsReadStreamCompatible(): ReadStreamCompatible[VertxStreams] = new ReadStreamCompatible[VertxStreams] { | ||
|
||
override val streams: VertxStreams = VertxStreams | ||
|
||
override def asReadStream(readStream: ReadStream[Buffer]): ReadStream[Buffer] = | ||
readStream | ||
|
||
override def fromReadStream(readStream: ReadStream[Buffer]): ReadStream[Buffer] = | ||
readStream | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters