るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.082秒)
トップページ > クエリ:path[x] > クエリ:webrick/cgi[x]

別のキーワード

  1. webrick/httpservlet new
  2. webrick/httpservlet do_get
  3. webrick/httpservlet do_post
  4. webrick version
  5. webrick/log info

種類

検索結果

webrick/cgi (38048.0)

一般の CGI 環境で webrick ライブラリのサーブレットと同じように CGI スクリプトを書くための ライブラリです。サーバが WEBrick でなくても使うことが出来ます。

...do_XXX メソッドを呼び出します。このようにしてスクリプトは実行されます。

例:

#!/usr/local/bin/ruby
require 'webrick/cgi'

class MyCGI < WEBrick::CGI
def do_GET(req, res)
res["content-type"] = "text/plain"
ret = "hoge\n"
res.body = ret
end
e...
...ムフィールドの値は WEBrick::HTTPRequest#query メソッドが返す Hash オブジェクトに
収納されています。

require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
req.query #=> Hash を返します。
req.query['q']...
...est オブジェクトの各メソッドから得ることができます。

require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
req.content_length
req.content_type
req.path_info
req.query_string
req.peeraddr
req.host
req.user
req.reque...

ruby 1.8.4 feature (54.0)

ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。

...5 NAKAMURA Usaku <usa@ruby-lang.org>
#
# * file.c (rb_file_s_basename): skip slashes just after UNC top slashes.
#
# * test/ruby/test_path.rb (test_dirname, test_basename): follow new
# spec. and add new tests.

UNCパスに対するFile.dirname・File.basename・File.split...
...* file.c (rb_file_s_dirname): added checks for some patterns with drive
# letter. fixed: [ruby-dev:27738]
#
# * test/ruby/test_path.rb (test_dirname): added tests for above
# patterns.

ドライブレターを含むパスに対するFile.dirnameの問題を修正し...
...とがなくなりました。
[webrickja:148]

: WEBrick

#Wed Sep 28 15:14:19 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
#
# * lib/webrick/cgi.rb (WEBrick::CGI#start): req.query_string should
# refer the value of QUERY_STRING. [ruby-list:41186]

WEBrick::CGI#startでreq.query...