https://github.com/slogsdon/sap
A toolkit for Plug applications to accept and respond to HTTP requests by using a decision tree built with combinators
https://github.com/slogsdon/sap
combinators elixir plug
Last synced: 9 months ago
JSON representation
A toolkit for Plug applications to accept and respond to HTTP requests by using a decision tree built with combinators
- Host: GitHub
- URL: https://github.com/slogsdon/sap
- Owner: slogsdon
- License: mit
- Created: 2015-10-24T19:09:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-12-24T23:10:25.000Z (about 8 years ago)
- Last Synced: 2025-05-07T14:13:11.651Z (9 months ago)
- Topics: combinators, elixir, plug
- Language: Elixir
- Homepage: http://hexdocs.pm/sap
- Size: 38.1 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sap
[](https://travis-ci.org/slogsdon/sap)
[](https://coveralls.io/r/slogsdon/sap)
[](https://hex.pm/packages/sap)
[](http://inch-ci.org/github/slogsdon/sap)
Sap is a toolkit for Plug applications to accept and respond to HTTP requests by using a decision tree built with combinators.
> **Warning!** Sap is still in progress. The combinators that are available now will work in an application if you were to create one, but this library could use a lot of optimizations. The eventual goal is to minimize any performance hit to as close to 0% as possible.
## Inspiration
This may look familiar to experienced functional programmers. [Suave](http://suave.io) from F# and other similar libraries contain a set of combinators to manipulate route flow and task composition.
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:
1. Add sap to your list of dependencies in `mix.exs`:
def deps do
[{:sap, "~> 0.0.1"}]
end
2. Ensure sap is started before your application:
def application do
[applications: [:sap]]
end
## License
Sap is released under the MIT License.
See [LICENSE](https://github.com/slogsdon/sap/blob/master/LICENSE) for details.