Skip to content
This repository has been archived by the owner. It is now read-only.
high performance asynchronous rack web server
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
ext/bossan
lib
test
.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
You can’t perform that action at this time.