Skip to content

v2.0.0-RC5 - ZIO 2 Support

Compare
Choose a tag to compare
@amitksingh1490 amitksingh1490 released this 01 Apr 13:17
· 1166 commits to main since this release
e2e3561

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