You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: servant/src/Servant/API/Stream.hs
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -26,17 +26,19 @@ import Data.Typeable
26
26
(Typeable)
27
27
importGHC.Generics
28
28
(Generic)
29
+
importGHC.TypeLits
30
+
(Nat)
29
31
importNetwork.HTTP.Types.Method
30
32
(StdMethod (..))
31
33
importText.Read
32
34
(readMaybe)
33
35
34
36
--| A Stream endpoint for a given method emits a stream of encoded values at a given Content-Type, delimited by a framing strategy. Stream endpoints always return response code 200 on success. Type synonyms are provided for standard methods.
--| Stream endpoints may be implemented as producing a @StreamGenerator@ -- a function that itself takes two emit functions -- the first to be used on the first value the stream emits, and the second to be used on all subsequent values (to allow interspersed framing strategies such as comma separation).
0 commit comments