Sha256: 06eb6a5385ecd8a9ed5e5ef6d208007f0ace922b85cbeb2a75f2e568c29a88d8
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
#! /usr/bin/env ruby # -*- coding: utf-8 -*- require 'webrick' include WEBrick require 'firephruby' server = HTTPServer.new(:Port => 8085) server.mount_proc('/firetest') do |request, response| response.fire_log 'HMMMmmm...' response.fire_info 'Übrigens...' response.fire_warn "Achtunk!" response.fire_error "Scheiße!" response.body = "so far it worked" end trap('INT') { server.shutdown } server.start
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
firephruby-0.1.2 | webrick_sample.rb |