Sha256: 8ea4b114608958ee36a95688cf35654fd53238d603ee3eb0f33ad539018d4784

Contents?: true

Size: 752 Bytes

Versions: 3

Compression:

Stored size: 752 Bytes

Contents

require 'iowa'
require 'webrick'

# This is a _basic_ level of support.  I'm sure that I need to add things to
# deal with multipart/form-data forms for file uploads, and for providing some
# of the other information that is encapsulated in an Iowa::Request.

class Iowa::Request
	alias old_init initialize
	def initialize
		@headers_in = Iowa::R::Table.new
		@headers_out = Iowa::R::Table.new
		@params = {}
	end
end

class Iowa::WEBrickServlet < WEBrick::HTTPServlet::AbstractServlet

	#####
	#// This is the only magic.  It takes the place of the
	#// Iowa::handleConnection() method that is used when running in a
	#// non-webrick mode.
	#####
	def do_GET request, response
		Iowa::handleConnection(request,response)
	end
	alias do_POST do_GET
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
IOWA-1.0.3 src/iowa/webrick/WEBrickServlet.rb
IOWA-1.0.2 src/iowa/webrick/WEBrickServlet.rb
IOWA-1.0.0 src/iowa/webrick/WEBrickServlet.rb