@@ -18,6 +18,7 @@ import Data.IntMap.Strict (IntMap, IntMap)
1818import qualified Data.IntMap.Strict as M
1919import qualified Network.HTTP.Types as H
2020import Network.Wai (Request, Response)
21+import Network.Wai.HTTP2 (Trailers)
2122import Network.Wai.Handler.Warp.IORef
2223import Network.Wai.Handler.Warp.Types
2324
@@ -60,10 +61,18 @@ type BytesFilled = Int
6061data Next = Next BytesFilled (Control DynaNext)
6162
6263data Output = OFinish
64+ -- ^ Terminate the connection.
6365 | OGoaway ByteString
66+ -- ^ Send a goaway frame and terminate the connection.
6467 | OFrame ByteString
68+ -- ^ Send an entire pre-encoded frame.
6569 | OResponse Stream Response Aux
70+ -- ^ Send the headers and as much of the response as is immediately
71+ -- available.
6672 | ONext Stream DynaNext
73+ -- ^ Send a chunk of the response.
74+ | OTrailers Stream Trailers
75+ -- ^ Send a series of trailers in header and continuation frames.
6776
6877outputStream :: Output -> Stream
6978outputStream (OResponse strm _ _) = strm