Sha256: aec1314a1969d91790ec687342b8a471779c7378bc61a3097ed4e6eddd8c29d0
Contents?: true
Size: 505 Bytes
Versions: 1
Compression:
Stored size: 505 Bytes
Contents
module Jettr module Handler class SimpleHandler < Jettr::Handler::Base def initialize(response) super() @response = response end def handle(target, request, response, dispatch) puts "Handling request for: #{[target,request,response,dispatch].inspect}" response.content_type = "text/html;charset=utf-8" response.status = 200 response.get_writer.println(@response) request.handled = true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jettr-0.2.1-java | lib/jettr/handler/simple_handler.rb |