Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

I wonder what kind of Elixir is boiling in there.

NotificationsYou must be signed in to change notification settings

meh/cauldron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Examples

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

Why?

Because I don't like how cowboy handles things and there are no other pureElixir webservers around that I know of.

Speed

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

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp