Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
high performance asynchronous rack web server
C Ruby Other
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
ext/bossan
lib
test Fix test bug
.gitignore
.travis.yml
CHANGELOG.md
Gemfile
LICENSE.txt
README.md
Rakefile
bossan.gemspec

README.md

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
Something went wrong with that request. Please try again.