Haskell combinator library for defining and serving web services.
Questions tagged [servant]
197 questions
-1
votes
1 answer
How to implement conditional endpoints with Servant?
I have an existing server written using the Servant library.
I now want to make the endpoints conditional such that based on certain configuration or logic, I would like to serve (or not serve) a particular endpoint.
What's the best way to do this?…

Kahlil Abreu
- 48
- 7
-2
votes
1 answer
Servant-options does not handle OPTIONS request
I am using servant-options packages as described in the documentation:
type RepositoryAPI = "repository" :> Get '[JSON] Repository
getRepository :: Handler Repository
getRepository = do
repository <- liftIO loadRawRepositoryFromFilesystem
…

altern
- 5,829
- 5
- 44
- 72