Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Basic Usage

Tony Arcieri edited this page Sep 15, 2013 · 4 revisions

Reel exposes a low-level Ruby API which is great for high-performance applications. If you're looking to use Reel directly as a web server in the same way you would use Unicorn or Puma, you probably want to take a look at Reel::Rack.

Reel Hello World

Here is a minimal example of how to create a simple "Hello World" web server with Reel:

require 'reel'

Reel::Server.run('127.0.0.1', 3000) do |connection|
  connection.each_request do |request|
    request.respond :ok, "hello, world!"
  end
end
Clone this wiki locally