Skip to content

Commit

Permalink
Allow HandlerAspect.customAuthProvidingZIO To Fail With User Specifie…
Browse files Browse the repository at this point in the history
…d Response (#2493)

* relax type constraint

* update documentation

---------

Co-authored-by: John A. De Goes <[email protected]>
  • Loading branch information
adamgfraser and jdegoes authored Dec 22, 2023
1 parent f4b68d2 commit 1370071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zio-http/src/main/scala/zio/http/HandlerAspect.scala
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ private[http] trait HandlerAspects extends zio.http.internal.HeaderModifier[Hand
* handlers.
*/
def customAuthProvidingZIO[Env, Context](
provide: Request => ZIO[Env, Nothing, Option[Context]],
provide: Request => ZIO[Env, Response, Option[Context]],
responseHeaders: Headers = Headers.empty,
responseStatus: Status = Status.Unauthorized,
): HandlerAspect[Env, Context] =
Expand Down

0 comments on commit 1370071

Please sign in to comment.