# RDoc::Servlet - ri - phpman

= [**RDoc::Servlet](https://www.chedong.com/phpMan.php/perldoc/RDoc%3A%3AServlet/markdown) < [WEBrick::HTTPServlet::AbstractServlet**](https://www.chedong.com/phpMan.php/perldoc/WEBrick%3A%3AHTTPServlet%3A%3AAbstractServlet/markdown)

(from gem rdoc-7.2.0)
------------------------------------------------------------------------
This is a WEBrick servlet that allows you to browse ri documentation.

You can show documentation through either `ri --server` or, with
RubyGems 2.0 or newer, `gem server`.  For ri, the server runs on port
8214 by default.  For RubyGems the server runs on port 8808 by default.

## You can use this servlet in your own project by mounting it on a WEBrick
server:

  require 'webrick'

  server = [WEBrick::HTTPServer](https://www.chedong.com/phpMan.php/perldoc/WEBrick%3A%3AHTTPServer/markdown).new Port: 8000

  server.mount '/', [RDoc::Servlet](https://www.chedong.com/phpMan.php/perldoc/RDoc%3A%3AServlet/markdown)

## If you want to mount the servlet some other place than the root, provide
the base path when mounting:

  server.mount '/rdoc', [RDoc::Servlet](https://www.chedong.com/phpMan.php/perldoc/RDoc%3A%3AServlet/markdown), '/rdoc'
------------------------------------------------------------------------
= **Class methods:**

  new

= **Instance methods:**

  asset
  asset_dirs
  do_GET
  documentation_page
  documentation_search
  documentation_source
  error
  generator_for
  if_modified_since
  installed_docs
  not_found
  options
  ri_paths
  root
  root_search
  show_documentation
  store_for

= **Attributes:**

  attr_reader asset_dirs
  attr_reader options

