Skip to content

Commit

Permalink
Blocking servlets require blocking Servlet I/O
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Jun 6, 2022
1 parent 716a20c commit ba3d295
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,22 @@ import org.http4s.server._
import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpServletResponse

class BlockingHttp4sServlet[F[_]](
class BlockingHttp4sServlet[F[_]] private (
service: HttpApp[F],
servletIo: ServletIo[F],
serviceErrorHandler: ServiceErrorHandler[F],
dispatcher: Dispatcher[F],
)(implicit F: Sync[F])
extends Http4sServlet[F](service, servletIo, dispatcher) {

def this(
service: HttpApp[F],
servletIo: BlockingServletIo[F],
serviceErrorHandler: ServiceErrorHandler[F],
dispatcher: Dispatcher[F],
)(implicit F: Sync[F]) =
this(service, servletIo: ServletIo[F], serviceErrorHandler, dispatcher)(F)

@deprecated("Binary compatibility", "0.23.12")
private[servlet] def this(
service: HttpApp[F],
Expand Down

0 comments on commit ba3d295

Please sign in to comment.