るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.084秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:n[x] > クエリ:io[x] > ライブラリ:webrick/httpserver[x]

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. rsa n=
  3. rsa n
  4. openssl n
  5. openssl n=

クラス

検索結果

WEBrick::HTTPServer#mount(dir, servlet, *options) -> () (6203.0)

サーバ上のディレクトリ dir にサーブレット servlet を対応させます。

...定します。

@param options サーブレットのコンストラクタの引数を指定します。

require 'webrick'
include WEBrick
srv = HTTPServer.new( { :BindAddress => '127.0.0.1', :Port => 10080 } )
srv.mount('/img', WEBrick::HTTPServlet::FileHandler, '/home/username/images')...