public Method

DispatchServlet.service(req, res)

There's no documentation for this item.

Source Code

# File webrick_server.rb, line 74
def service(req, res) #:nodoc:
  unless handle_file(req, res)
    begin
      REQUEST_MUTEX.lock unless ActionController::Base.allow_concurrency
      unless handle_dispatch(req, res)
        raise WEBrick::HTTPStatus::NotFound, "`#{req.path}' not found."
      end
    ensure
      unless ActionController::Base.allow_concurrency
        REQUEST_MUTEX.unlock if REQUEST_MUTEX.locked?
      end
    end
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.