Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't start response until after we add async timeout listener
- Loading branch information
1 parent
6220e2b
commit 38b7389
Showing
7 changed files
with
81 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package org.http4s | ||
|
||
import cats.effect.Async | ||
|
||
package object servlet { | ||
protected[servlet] type BodyWriter[F[_]] = (Response[F], F[Unit]) => F[Unit] | ||
protected[servlet] type BodyWriter[F[_]] = Response[F] => F[Unit] | ||
|
||
protected[servlet] def NullBodyWriter[F[_]]: BodyWriter[F] = | ||
(_, timeout) => timeout | ||
protected[servlet] def NullBodyWriter[F[_]](implicit F: Async[F]): BodyWriter[F] = | ||
_ => F.unit | ||
|
||
protected[servlet] val DefaultChunkSize = 4096 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters