Skip to content

Commit

Permalink
Tweak the ArmeriaServerBuilder#withHttpApp
Browse files Browse the repository at this point in the history
  • Loading branch information
danicheg committed Dec 7, 2024
1 parent 484b778 commit 3d722b7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ sealed class ArmeriaServerBuilder[F[_]] private (
def withHttpApp(prefix: String, service: HttpApp[F]): Self =
copy(addServices = (ab, dispatcher) =>
addServices(ab, dispatcher).map(
_.serviceUnder(prefix, ArmeriaHttp4sHandler(prefix, service, dispatcher))))
_.serviceUnder(
prefix,
ArmeriaHttp4sHandler(prefix, service, serviceErrorHandler, dispatcher))))

/** Decorates all HTTP services with the specified [[DecoratingFunction]]. */
def withDecorator(decorator: DecoratingFunction): Self =
Expand Down

0 comments on commit 3d722b7

Please sign in to comment.