Sha256: 4be69c703ebb749f19bb845f1de711402c1b99ec9b69b03037520a22acaaf451

Contents?: true

Size: 680 Bytes

Versions: 98

Compression:

Stored size: 680 Bytes

Contents

# Run with: rackup -s thin
# then browse to http://localhost:9292
# Or with: thin start -R config.ru
# then browse to http://localhost:3000
# 
# Check Rack::Builder doc for more details on this file format:
#  http://rack.rubyforge.org/doc/classes/Rack/Builder.html
require '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
    body                                        # Body of the response
  ]
end

run app

Version data entries

98 entries across 97 versions & 9 rubygems

Version Path
thin-1.8.2 example/config.ru
devcycle-ruby-server-sdk-1.1.0 examples/sinatra/vendor/bundle/ruby/3.1.0/gems/thin-1.8.1/example/config.ru
devcycle-ruby-server-sdk-1.1.0 examples/sinatra/vendor/bundle/ruby/2.6.0/gems/thin-1.8.1/example/config.ru
thin-1.8.1 example/config.ru
thin-1.8.0 example/config.ru
gross-1.7.2 example/config.ru
thin-1.7.2 example/config.ru
thin-1.7.1 example/config.ru
arcabouco-0.2.13 vendor/bundle/gems/thin-1.7.0/example/config.ru
thin-1.7.0 example/config.ru
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/thin-1.6.4/example/config.ru
classiccms-0.7.5 vendor/bundle/gems/thin-1.3.1/example/config.ru
classiccms-0.7.4 vendor/bundle/gems/thin-1.3.1/example/config.ru
classiccms-0.7.3 vendor/bundle/gems/thin-1.3.1/example/config.ru
thin-1.6.4 example/config.ru
thin-1.6.3 example/config.ru
thin-1.6.2 example/config.ru
thin-1.6.1 example/config.ru
thin-1.6.0 example/config.ru
classiccms-0.7.2 vendor/bundle/gems/thin-1.3.1/example/config.ru