8efabed5c6
Instead of only exposing 'serveDirectory', which picks a specific static file serving strategy (file server settings), we now expose 4 different variants each corresponding to an variant of StaticSettings in wai-app-static. In addition to these, we expose a more flexible 'serveDirectoryWith' function which allows the user to specify some arbitrary StaticSettings, if the 4 existing variants do not cover a user's needs. |
||
---|---|---|
.. | ||
example | ||
include | ||
src | ||
test | ||
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
servant-server.cabal | ||
Setup.lhs | ||
tinc.yaml |
servant-server
This library lets you implement an HTTP server with handlers for each endpoint of a servant API, handling most of the boilerplate for you.
Getting started
We've written a tutorial guide that introduces the core types and features of servant. After this article, you should be able to write your first servant webservices, learning the rest from the haddocks' examples.