@@ -21,7 +21,7 @@ import Network (sClose, Socket)
2121import Network.Socket (accept, withSocketsDo, SockAddr(SockAddrInet, SockAddrInet6))
2222import qualified Network.Socket.ByteString as Sock
2323import Network.Wai
24−import Network.Wai.HTTP2 (Http2Application)
24+import Network.Wai.HTTP2 (HTTP2Application)
2525import Network.Wai.Handler.Warp.Buffer
2626import Network.Wai.Handler.Warp.Counter
2727import qualified Network.Wai.Handler.Warp.Date as D
@@ -69,7 +69,7 @@ allowInterrupt :: IO ()
6969allowInterrupt = unblock $ return ()
7070#endif
7171
72−-- Composition over two arguments at once; used for runHttp2\*.
72+-- Composition over two arguments at once; used for runHTTP2\*.
7373(.:) :: (c -> d) -> (a -> b -> c) -> a -> b -> d
7474f .: g = curry $ f . uncurry g
7575
@@ -78,10 +78,10 @@ f .: g = curry $ f . uncurry g
7878run :: Port -> Application -> IO ()
7979run port = runServe port . serveDefault
8080
81−-- | Serve an 'Http2Application' and an 'Application' together on the given
81+-- | Serve an 'HTTP2Application' and an 'Application' together on the given
8282-- port.
83−runHttp2 :: Port -> Http2Application -> Application -> IO ()
84−runHttp2 port = runServe port .: serveHttp2
83+runHTTP2 :: Port -> HTTP2Application -> Application -> IO ()
84+runHTTP2 port = runServe port .: serveHTTP2
8585
8686-- | The generalized form of 'run'.
8787runServe :: Port -> ServeConnection -> IO ()
@@ -96,8 +96,8 @@ runEnv :: Port -> Application -> IO ()
9696runEnv port = runServeEnv port . serveDefault
9797
9898-- | The HTTP\/2-aware form of 'runEnv'.
99−runHttp2Env :: Port -> Http2Application -> Application -> IO ()
100−runHttp2Env port = runServeEnv port .: serveHttp2
99+runHTTP2Env :: Port -> HTTP2Application -> Application -> IO ()
100+runHTTP2Env port = runServeEnv port .: serveHTTP2
101101
102102-- | The generalized form of 'runEnv'.
103103runServeEnv :: Port -> ServeConnection -> IO ()
@@ -119,8 +119,8 @@ runSettings :: Settings -> Application -> IO ()
119119runSettings set = runServeSettings set . serveDefault
120120
121121-- | The HTTP\/2-aware form of 'runSettings'.
122−runHttp2Settings :: Settings -> Http2Application -> Application -> IO ()
123−runHttp2Settings set = runServeSettings set .: serveHttp2
122+runHTTP2Settings :: Settings -> HTTP2Application -> Application -> IO ()
123+runHTTP2Settings set = runServeSettings set .: serveHTTP2
124124
125125-- | The generalized form of 'runSettings'.
126126runServeSettings :: Settings -> ServeConnection -> IO ()
@@ -147,13 +147,13 @@ runSettingsSocket :: Settings -> Socket -> Application -> IO ()
147147runSettingsSocket set socket = runServeSettingsSocket set socket . serveDefault
148148
149149-- | The HTTP\/2-aware form of 'runSettingsSocket'.
150−runHttp2SettingsSocket :: Settings
150+runHTTP2SettingsSocket :: Settings
151151 -> Socket
152− -> Http2Application
152+ -> HTTP2Application
153153 -> Application
154154 -> IO ()
155−runHttp2SettingsSocket set socket =
156− runServeSettingsSocket set socket .: serveHttp2
155+runHTTP2SettingsSocket set socket =
156+ runServeSettingsSocket set socket .: serveHTTP2
157157
158158-- | The generalized form of 'runSettingsSocket'.
159159runServeSettingsSocket :: Settings -> Socket -> ServeConnection -> IO ()
@@ -369,17 +369,17 @@ type ServeConnection = Connection
369369
370370-- Serve an HTTP\/2-aware application, rejecting clients that attempt to use an
371371-- older protocol version.
372−serveHttp2Only :: Http2Application -> ServeConnection
373−serveHttp2Only = error "serveHttp2Only not implemented"
372+serveHTTP2Only :: HTTP2Application -> ServeConnection
373+serveHTTP2Only = error "serveHTTP2Only not implemented"
374374
375375-- Serve an HTTP\/2-unaware Application to a connection over any HTTP version.
376376serveDefault :: Application -> ServeConnection
377−serveDefault = flip serveHttp2 <*> promoteApplication
377+serveDefault = flip serveHTTP2 <*> promoteApplication
378378
379379-- Serve an HTTP\/2-aware application over HTTP\/2 or a backup 'Application'
380380-- over HTTP\/1.1 or HTTP\/1.
381−serveHttp2 :: Http2Application -> Application -> ServeConnection
382−serveHttp2 app2 app conn ii origAddr transport settings = do
381+serveHTTP2 :: HTTP2Application -> Application -> ServeConnection
382+serveHTTP2 app2 app conn ii origAddr transport settings = do
383383 -- fixme: Upgrading to HTTP/2 should be supported.
384384 (h2,bs) <- if isHTTP2 transport then
385385 return (True, "")