@@ -20,9 +20,9 @@ type Trailers = H.ResponseHeaders
20-- | The HTTP\/2-aware equivalent of 'Network.Wai.Application'.
20-- | The HTTP\/2-aware equivalent of 'Network.Wai.Application'.
21type Http2Application = Request -> (forall a. Response a -> IO a) -> IO Trailers
21type Http2Application = Request -> (forall a. Response a -> IO a) -> IO Trailers
23−type StreamingBody a = (Builder -> IO ()) -> IO () -> IO a
23+type Body a = (Builder -> IO ()) -> IO () -> IO a
25−type Response a = (H.Status, H.ResponseHeaders, StreamingBody a)
25+type Response a = (H.Status, H.ResponseHeaders, Body a)
27responseStatus :: Response a -> H.Status
27responseStatus :: Response a -> H.Status
28responseStatus (s, _, _) = s
28responseStatus (s, _, _) = s
@@ -30,5 +30,5 @@ responseStatus (s, _, _) = s
30responseHeaders :: Response a -> H.ResponseHeaders
30responseHeaders :: Response a -> H.ResponseHeaders
31responseHeaders (_, h, _) = h
31responseHeaders (_, h, _) = h
33−responseStream :: H.Status -> H.ResponseHeaders -> StreamingBody a -> Response a
33+responseStream :: H.Status -> H.ResponseHeaders -> Body a -> Response a
34responseStream = (,,)
34responseStream = (,,)