github zio/zio-http v1.0.0.0-RC26

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

Changes

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: v1.0.0.0-RC25...v1.0.0.0-RC26

Don't miss a new zio-http release

NewReleases is sending notifications on new releases.