Project

bossan

0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
high performance asynchronous rack web server
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.2
 Project Readme

Bossan

Build Status

Bossan is a high performance asynchronous ruby's rack web server.

Requirements

Bossan requires Ruby 2.1.1 or later.

Bossan supports Linux, FreeBSD and MacOSX(need gcc>=4.2).

Installation

Install from rubygems:

gem install bossan

Install from source(github):

git clone git://github.com/kubo39/bossan.git
cd bossan
rake
rake install

Usage

simple rack app:

require 'bossan'

Bossan.listen('127.0.0.1', 8000)
Bossan.run(proc {|env|
  body = ['hello, world!']        # Response body
  [
   200,          # Status code
   {             # Response headers
     'Content-Type' => 'text/html',
     'Content-Length' => body.join.bytesize.to_s,
   },
   body
  ]
})

with rackup:

$ rackup config.ru -s bossan

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request