るりまサーチ

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

別のキーワード

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

種類

検索結果

webrick/cgi (38066.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']...
...

require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
c1 = WEBrick::Cookie.new("name1", "val1")
c1.expires = Time.now + 30
res.cookies << c1

c2 = WEBrick::Cookie.new("name2", "val2")
c2.expires = Time.now + 30
res.cookies << c2
end
en...

ruby 1.8.4 feature (66.0)

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

...): the value of Set-Cookie:
# header field should be splited into each cookie. [ruby-Bugs:2199]
#
# * lib/webrick/cookie.rb (WEBrick::Cookie.parse_set_cookie): new method
# to parse the value of Set-Cookie: header field.
#
# * test/webrick/test_cookie.rb, test/webrick/te...
...st_cgi.rb,
# test/webrick/webrick.cgi: add some test for cookie.
#
# ?

: WEBrick::Config::FileHandler [compat]

#Fri Oct 14 16:57:32 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
#
# * lib/webrick/config.rb (Config::FileHandler): :UserDir should be nil.
# It is harmful to permi...
...とがなくなりました。
[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...