- Notifications
You must be signed in to change notification settings - Fork7
meh/cauldron
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Cauldron is a web server implemented as a library, it's easy to embed intoother applications and fairly easy to implement DSLs on it, an exampleof a DSL using cauldron isurna.
defmoduleFoodouseCauldron# respond to a GET / request with "Hello, World!"defhandle("GET",%URI{path:"/"},req)doreq|>Request.reply(200,"Hello, World!")endend# open the cauldron on port 8080Cauldron.startFoo,port:8080
Because I don't like how cowboy handles things and there are no other pureElixir webservers around that I know of.
Right now cauldron is faster than node.js and slower than cowboy, there' stillspace for speed improvements but it's not a high priority right now.
The slowness comes from protocol dispatching in Elixir, protocol consolidationwill fix that.
Also we don't use an hand-crafted decoder like cowboy does but use:erlang.decode_packet
.
About
I wonder what kind of Elixir is boiling in there.
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.