Bossan is a high performance asynchronous ruby's rack-compliant web server.
Bossan requires Ruby 1.9.2 or later.
Bossan supports Linux, FreeBSD and Mac OS X(need gcc>=4.2).
from rubygems
gem install bossan
or from source:
git clone git://github.com/kubo39/bossan.git
cd bossan
rake build
rake install
simple rack app:
require 'bossan'
Bossan.run('127.0.0.1', 8000, proc {|env|
[
200, # Status code
{ # Response headers
'Content-Type' => 'text/html',
'Content-Length' => '13',
},
['hello, world!'] # Response body
]
})
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request