haskell-servant / haskell-servant/servant
Run handlers with URI
Open
- Dominant language
- Haskell
- Stars
- 2k
- Forks
- 427
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 5
Description
Is it possible to run servant handlers with just URI? Meaning, can I run servant application without starting the e.g. wai server?
I'd expect the function to look something like this:
```haskell
runServerless :: Server api -> URI -> IO (Either ServerError a)
```
I guess I would be the one supplying type of the expected value `a` and `ServerError` would be returned in case matched `URI` route doesn't have that type.
Contributor guide
Assessment
This issue has not been assessed yet.