Skip to content

Commit e2f4fdf

Browse files
committed
Add VertxStreams
1 parent 9830552 commit e2f4fdf

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

build.sbt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,3 +244,15 @@ lazy val zio = (projectMatrix in file("zio"))
244244
settings = commonNativeSettings
245245
)
246246
.dependsOn(core)
247+
248+
lazy val vertx = (projectMatrix in file("vertx"))
249+
.settings(
250+
name := "vertx"
251+
)
252+
.jvmPlatform(
253+
scalaVersions = List(scala2_12, scala2_13) ++ scala3,
254+
settings = commonJvmSettings ++ Seq(
255+
libraryDependencies += "io.vertx" % "vertx-core" % "4.4.0"
256+
)
257+
)
258+
.dependsOn(core)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package sttp.capabilities.vertx
2+
3+
import io.vertx.core.buffer.Buffer
4+
import io.vertx.core.streams.ReadStream
5+
import sttp.capabilities.Streams
6+
7+
trait VertxStreams extends Streams[VertxStreams] {
8+
override type BinaryStream = ReadStream[Buffer]
9+
override type Pipe[A, B] = ReadStream[A] => ReadStream[B]
10+
}
11+
12+
object VertxStreams extends VertxStreams

0 commit comments

Comments
 (0)