RAA - webapp/0.2

webapp / 0.2

Short description: easy-to-use CGI/FastCGI/mod_ruby/WEBrick interface
Category: Library/WWW
Status: alpha
Created: 2004-09-08 10:34:11 GMT
Last update: 2004-12-30 07:33:25 GMT
Owner: Tanaka Akira (Projects of this owner)
Homepage: http://www.a-k-r.org/webapp/
Download: http://www.a-k-r.org/webapp/
License: Ruby's
Dependency:
Requires: htree/0.2(*)
Requires: fcgi/0.8.4(+)
Requires: mod_ruby/1.2.2(*)
(*): newer version exists
(+): no such version
Description:
  • very easy-to-use API
  • works under CGI, FastCGI and mod_ruby without modification
  • works under WEBrick (WEBrick based server must require "webapp/webrick-servlet", though.)
  • works as usual command (CLI) for debugging and static content generation. [new]

    xxx.cgi [options] [/path_info] [?query_string]
  • path_info aware relative URI generation
  • HTML form parameter validation by HTML form (sample/query.cgi)
  • automatic Content-Type generation [new]
  • a web application can be used as a web site with WEBrick [new] (URL will be http://host/path_info?query. No path component to specify a web application.)
  • a response is gzipped automatically if the browser accepts. [new]

The script follows works under CGI, FastCGI and mod_ruby without modification.

require 'webapp'
WebApp {|webapp|
  webapp.puts "Hello World."
}

It is also work under WEBrick based server if the server requires 'webapp/webrick-servlet'.

Versions: [0.2 (2004-12-30)] [0.1 (2004-09-08)]

Edit this project (for project owner)

back to RAA top