on master help sign in
updating hcar tex files from the editor.
0389fe1Kazu Yamamoto
hcar-wai.tex+6−6
@@ -7,7 +7,7 @@
7\makeheader
7\makeheader
8
8
9WAI (Web Application Interface) is an application interface between web
9WAI (Web Application Interface) is an application interface between web
10−applications and handlers in Haskell. The \texttt{Application} data type is
10+applications and handlers in Haskell. The \texttt{Application} data type is
11defined as follows:
11defined as follows:
12
12
13\begin{verbatim}
13\begin{verbatim}
@@ -24,14 +24,14 @@ response to the function.
24
24
25Historically speaking, this interface made possible to develop handlers other
25Historically speaking, this interface made possible to develop handlers other
26than HTTP. The WAI applications can run through FastCGI
26than HTTP. The WAI applications can run through FastCGI
27−(wai-handler-fastcgi), run as stand-alone (wai-handler-webkit), etc. But the
27+(wai-handler-fastcgi), run as stand-alone (wai-handler-webkit), etc. But the
28−most popular handler is based on HTTP, of course. The major HTTP handler for
28+most popular handler is based on HTTP, of course. The major HTTP handler for
29WAI is Warp which now provides both HTTP/1.1 and HTTP/2. TLS (warp-tls) is
29WAI is Warp which now provides both HTTP/1.1 and HTTP/2. TLS (warp-tls) is
30−also available. New transports such as WebSocket (wai-websocket) and Event
30+also available. New transports such as WebSocket (wai-websocket) and Event
31Source (wai-extra) can be implemented, too.
31Source (wai-extra) can be implemented, too.
32
32
33−It is possible to develop WAI applications directly. For instance, Hoogle and
33+It is possible to develop WAI applications directly. For instance, Hoogle and
34−Mighttpd2 take this way. However, you may want to use web application
34+Mighttpd2 take this way. However, you may want to use web application
35frameworks such as Apiary, MFlow, rest, Servant, Scotty, Spock, Yesod, etc.
35frameworks such as Apiary, MFlow, rest, Servant, Scotty, Spock, Yesod, etc.
36
36
37WAI also provides \texttt{Middleware}:
37WAI also provides \texttt{Middleware}: