Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Update http4s-argonaut, http4s-circe to 0.21.17 #120

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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 http/src/main/scala/client/HttpClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class HttpClient[F[_]: Effect](c: Client[F], host: String, port: Int) {

val request: Request[F] = Request[F](Method.POST, baseUri)

val req = request.withBody(newPerson.asJson)
val req = request.withEntity(newPerson.asJson)

c.expect(req)

Expand Down
5 changes: 3 additions & 2 deletions http/src/main/scala/server/HttpServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import org.http4s.dsl.io._
import org.http4s.server.blaze._

import scala.concurrent.ExecutionContext.Implicits.global
import org.http4s.server.blaze.BlazeServerBuilder

object HttpServer extends StreamApp[IO] {

Expand All @@ -23,7 +24,7 @@ object HttpServer extends StreamApp[IO] {
): fs2.Stream[IO, StreamApp.ExitCode] =
for {
b <-
BlazeBuilder[IO]
BlazeServerBuilder[IO]
.bindHttp(HttpConf.port, HttpConf.host)
.mountService(httpServices, "/")
.serve
Expand All @@ -32,7 +33,7 @@ object HttpServer extends StreamApp[IO] {
)
} yield b

val httpServices = HttpService[IO] {
val httpServices = HttpRoutes.of[IO] {

case GET -> Root / "person" => Ok(listPersons)
case GET -> Root / "person" / id => Ok(getPerson(PersonId(id)))
Expand Down
2 changes: 1 addition & 1 deletion project/ProjectPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ object ProjectPlugin extends AutoPlugin {

lazy val V = new {
lazy val freesRPC = "0.15.1"
lazy val http4s = "0.18.26"
lazy val http4s = "0.21.17"
lazy val config = "1.4.1"
lazy val logback = "1.2.3"
lazy val circe = "0.13.0"
Expand Down