github zio/zio-http v2.0.0-RC5
v2.0.0-RC5 - ZIO 2 Support

latest releases: v3.0.1, v3.0.0, v3.0.0-RC10...
2 years ago

What's Changed

Supports ZIO v2.0.0-RC3

Highlights

Request Streaming

  private val app = Http.collect[Request] {
   case req @ Method.POST -> !! / "echo" =>
   Response(data = HttpData.fromStream(req.bodyAsStream))
  }

💥 Breaking Changes

  • Http.Status names to Camel Case
    Status.OK -> Status.Ok
  • Http.getResource consistent with ZStream.fromResource
    val httpApp = Http.fromResource("TestFile.js")
  • Client and Server Request merged
    val clientRequest = Request(url = url, method = Method.GET,  headers = headers )
  • Version added in the Request
    val req = Request(Version.`HTTP/1.1`, Method.GET, URL(!!))

🚀 Features

🔨 Improvements

🐛 Bug Fixes

🧰 Maintenance

New Contributors

Full Changelog: v2.0.0-RC4...v2.0.0-RC5

Don't miss a new zio-http release

NewReleases is sending notifications on new releases.