servant/servant-server/test/Servant/Server
Andres Loeh b1a6d88845 Revise the Router type to allow proper sharing.
We've previously used functions in the Router type to provide
information for subrouters. But this accesses the Requests too
early, and breaks sharing of the router structure in general,
causing the Router or large parts of the Router to be recomputed
on every request.

We now do not use functions anymore, and properly compute all
static parts of the router first, and gain access to the request
only in Delayed.

This also turns the code used within Delayed into a proper monad
now called DelayedIO, making some of the code using it a bit
nicer.
2016-04-12 09:38:49 +02:00
..
Internal Introduce a Handler alias for ExceptT ServantErr IO 2016-04-11 22:27:29 -07:00
UsingContextSpec Revise the Router type to allow proper sharing. 2016-04-12 09:38:49 +02:00
ErrorSpec.hs return 400 (instead of 404) on invalid captures 2016-03-26 20:59:00 +08:00
RouterSpec.hs Revise the Router type to allow proper sharing. 2016-04-12 09:38:49 +02:00
StreamingSpec.hs Introduce a Handler alias for ExceptT ServantErr IO 2016-04-11 22:27:29 -07:00
UsingContextSpec.hs Introduce a Handler alias for ExceptT ServantErr IO 2016-04-11 22:27:29 -07:00