Skip to content

Commit

Permalink
Add a new constructor for ArmeriaHttp4sHandler and deprecate a former…
Browse files Browse the repository at this point in the history
… one
  • Loading branch information
danicheg committed Dec 7, 2024
1 parent c58d306 commit 484b778
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,19 @@ private[armeria] object ArmeriaHttp4sHandler {
def apply[F[_]: Async](
prefix: String,
service: HttpApp[F],
dispatcher: Dispatcher[F]): ArmeriaHttp4sHandler[F] =
serviceErrorHandler: ServiceErrorHandler[F],
dispatcher: Dispatcher[F]
): ArmeriaHttp4sHandler[F] =
new ArmeriaHttp4sHandler(prefix, service, serviceErrorHandler, dispatcher)

@deprecated(
"Use fully specified `org.http4s.armeria.server.ArmeriaHttp4sHandler.apply` instead",
"0.5.5")
def apply[F[_]: Async](
prefix: String,
service: HttpApp[F],
dispatcher: Dispatcher[F]
): ArmeriaHttp4sHandler[F] =
new ArmeriaHttp4sHandler(prefix, service, DefaultServiceErrorHandler, dispatcher)

private val serverSoftware: ServerSoftware =
Expand Down

0 comments on commit 484b778

Please sign in to comment.