-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ZIO-HTTP with Scala 3 #19322
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
Labels
Comments
Thank you for reporting this issue, we're aware of it already. |
ok, thanks, i'll give 3.3.2-RC1 a try
…On Thu, 21 Dec 2023 at 14:42, Wojciech Mazur ***@***.***> wrote:
Closed #19322 <#19322> as not
planned.
—
Reply to this email directly, view it on GitHub
<#19322 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATMXSSSWZKY34DH6LLPLS33YKRDDVAVCNFSM6AAAAABA6OMBAGVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGMYTMMZUGI4DIMI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
[image: Paideia-logo] <https://paideialondon.com/>
*Mark Walmsley*
Software Developer
[image: Paideia-Logo-LinkedIn]
<https://www.linkedin.com/company/paideia-london/>
[image: Paideia-Logo-Facebook] <https://www.facebook.com/paideialondon/>
[image: Paideia-Logo-Insta] <https://www.instagram.com/paideialondon/>
[image: Tatler-logo]
<https://addressbook.tatler.com/education/isabelle-waring> [image:
Acen-logo] <https://www.aceducationnetwork.com/> [image:
Ucl-edtech-labs-logo]
<https://www.idealondon.co.uk/innovation/ucl-edtech-labs/>
|
3.3.2-RC1 works fine except i had to copy protobuf-java-3.7.0.jar from
scala3-3.3.1/lib
…On Thu, 21 Dec 2023 at 14:55, Mark Walmsley ***@***.***> wrote:
ok, thanks, i'll give 3.3.2-RC1 a try
On Thu, 21 Dec 2023 at 14:42, Wojciech Mazur ***@***.***>
wrote:
> Closed #19322 <#19322> as not
> planned.
>
> —
> Reply to this email directly, view it on GitHub
> <#19322 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ATMXSSSWZKY34DH6LLPLS33YKRDDVAVCNFSM6AAAAABA6OMBAGVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGMYTMMZUGI4DIMI>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
--
[image: Paideia-logo] <https://paideialondon.com/>
*Mark Walmsley*
Software Developer
[image: Paideia-Logo-LinkedIn]
<https://www.linkedin.com/company/paideia-london/>
[image: Paideia-Logo-Facebook] <https://www.facebook.com/paideialondon/>
[image: Paideia-Logo-Insta] <https://www.instagram.com/paideialondon/>
[image: Tatler-logo]
<https://addressbook.tatler.com/education/isabelle-waring> [image:
Acen-logo] <https://www.aceducationnetwork.com/> [image:
Ucl-edtech-labs-logo]
<https://www.idealondon.co.uk/innovation/ucl-edtech-labs/>
--
[image: Paideia-logo] <https://paideialondon.com/>
*Mark Walmsley*
Software Developer
[image: Paideia-Logo-LinkedIn]
<https://www.linkedin.com/company/paideia-london/>
[image: Paideia-Logo-Facebook] <https://www.facebook.com/paideialondon/>
[image: Paideia-Logo-Insta] <https://www.instagram.com/paideialondon/>
[image: Tatler-logo]
<https://addressbook.tatler.com/education/isabelle-waring> [image:
Acen-logo] <https://www.aceducationnetwork.com/> [image:
Ucl-edtech-labs-logo]
<https://www.idealondon.co.uk/innovation/ucl-edtech-labs/>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Compiler version
If you're not sure what version you're using, run
print scalaVersion
from sbt(if you're running scalac manually, use
scalac -version
instead).scalaVersion := "3.3.1"
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "2.0.20",
"dev.zio" %% "zio-http" % "3.0.0-RC4"
)
Minimized code
import zio.*
import zio.http.*
object Main extends ZIOAppDefault:
private val routes = Routes(
Method.POST / "api" -> handler { (request: Request) =>
toResponse(request)
}
)
private def toResponse(request: Request): Task[Response] = request.body.asString.map(Response.text(_))
private val app = routes.toHttpApp
def run: Task[Nothing] = Server.serve(app).provide(Server.defaultWithPort(9090))
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: