Sha256: 9697c4620dee691357ed366d9384b27bbc798c5dc9b55d1f960b61fadfbf9877

Contents?: true

Size: 696 Bytes

Versions: 7

Compression:

Stored size: 696 Bytes

Contents

# Run with: rackup -s thin
# Then browse to http://localhost:9292
# Check Rack::Builder doc for more details on this file format:
#  http://rack.rubyforge.org/doc/classes/Rack/Builder.html

require File.dirname(__FILE__) + '/../lib/thin'

app = proc do |env|
  # Response body has to respond to each and yield strings
  # See Rack specs for more info: http://rack.rubyforge.org/doc/files/SPEC.html
  body = ['hi!']
  
  [
    200,                                        # Status code
    {
      'Content-Type' => 'text/html',            # Reponse headers
      'Content-Length' => body.join.size.to_s
    },
    body                                        # Body of the response
  ]
end

run app

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thin-0.5.4 example/config.ru
thin-0.6.0-x86-mswin32-60 example/config.ru
thin-0.6.2 example/config.ru
thin-0.6.1 example/config.ru
thin-0.6.2-x86-mswin32-60 example/config.ru
thin-0.6.1-x86-mswin32-60 example/config.ru
thin-0.6.0 example/config.ru