Sha256: e125daa49b494b837c2e396a5f908db471b020cdce1715714371a235fea0fa65
Contents?: true
Size: 447 Bytes
Versions: 1
Compression:
Stored size: 447 Bytes
Contents
require "rack" require "toycol" # Specify which protocol to use Toycol::Protocol.use(:PROTOCOL_NAME) class App def call(env) # Define your app on request method, request path, request query etc # For example: # case env['REQUEST_METHOD'] # when 'GET' # [ # 200, # { 'Content-Type' => 'text/html' }, # ["Hello, This app is running by :#{name} protocol."] # ] # end end end run App.new
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
toycol-0.3.0 | lib/toycol/templates/application.txt |