haskell-servant / haskell-servant/servant

Run handlers with URI

Open
#1,147 3 comments 0 reactions 1 assignee Claimed by @alpmestan View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.