Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update zio-http to 3.0.1 #285

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ lazy val V = new {
val zio = "2.1.7"
val zioJson = "0.6.2"
val zioMunitTest = "0.3.0"
val zioHttp = "3.0.0-RC9" // FIXES CORS https://github.com/zio/zio-http/pull/2490
val zioHttp = "3.0.1" // FIXES CORS https://github.com/zio/zio-http/pull/2490
val zioPrelude = "1.0.0-RC21"

// https://mvnrepository.com/artifact/io.github.cquiroz/scala-java-time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TransportDIDCommOverHTTP(
case _: EncryptedMessage => MediaTypes.ENCRYPTED.pipe(e => Header.ContentType(MediaType(e.mainType, e.subType)))
for {
res <- Client
.request(
.batched( // Shound we use .batched() or .streaming()testAll
Request
.post(path = destination, body = Body.fromCharSequence((msg: Message).toJson))
.setHeaders(Headers(Seq(contentTypeHeader)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ case class DIDWebResolver(client: Client, scope: Scope) extends Resolver {
val web = DIDWeb(did.specificId)
for {
res <- Client
.request(Request.get(path = web.url))
.batched(Request.get(path = web.url))
.provideEnvironment(ZEnvironment(client) ++ ZEnvironment(scope))
.mapError(ex => DIDresolutionFail.fromThrowable(ex))
_ = res
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ case class Uniresolver(uniresolverServer: String, client: Client, scope: Scope)
// else
for {
res <- Client
.request(Request.get(path = uniresolverServer + did))
.batched(Request.get(path = uniresolverServer + did))
.provideEnvironment(ZEnvironment(client) ++ ZEnvironment(scope))
.mapError(ex => DIDresolutionFail.fromThrowable(ex))
data <- res.body.asString
Expand Down
Loading