Sha256: 6c86072dd1b900c57e5335efc7cc3843fac99dedcd81af79c0f86bdbbbd4f263

Contents?: true

Size: 267 Bytes

Versions: 13

Compression:

Stored size: 267 Bytes

Contents

require 'impression'

app = Impression.app do
  mount '/' => text_response('Hello, world!')
end

# class App < Impression::Resource
#   def route(req)
#     @response ||= text_response('Hello, world!')
#   end
# end

# run { |req| req.respond_text('Hello, world!') }

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
impression-0.17 examples/hello.rb
impression-0.16 examples/hello.rb
impression-0.15 examples/hello.rb
impression-0.14 examples/hello.rb
impression-0.13 examples/hello.rb
impression-0.12 examples/hello.rb
impression-0.11 examples/hello.rb
impression-0.10 examples/hello.rb
impression-0.9 examples/hello.rb
impression-0.8 examples/hello.rb
impression-0.7.1 examples/hello.rb
impression-0.7 examples/hello.rb
impression-0.6 examples/hello.rb