36件ヒット
[1-36件を表示]
(0.014秒)
検索結果
先頭3件
-
CGI
# header(options = "text / html") -> String (18173.0) -
HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。
...で指定します。
Expires ヘッダに対応します。
: cookie
クッキーとして文字列か CGI::Cookie のインスタンス、またはそれらの配列かハッシュを指定します。
一つ以上の Set-Cookie ヘッダに対応します。
status パラメータには以......字列で HTTP ヘッダを生成するための情報を指定します。
例:
header
# Content-Type: text/html
header("text/plain")
# Content-Type: text/plain
header({"nph" => true,
"status" => "OK", # == "200 OK"......"expires" => Time.now + 30,
"cookie" => [cookie1, cookie2],
"my_header1" => "my_value",
"my_header2" => "my_value"})
例:
cgi = CGI.new('html3')
print cgi.header({"charset" => "shift_jis", "status" => "OK"})
p... -
ruby 1
. 8 . 4 feature (72.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......uby-lang.org>
#
# * lib/cgi.rb (CGI::Cookie::parse): Cookies from Nokia devices may
# not be parsed correctly. A patch from August Z. Flatby
# (augustzf) in [ruby-Patches-2595]. [ruby-core:06183]
NOKIAの携帯(?)からのCookieを正しくパースできなかった問... -
CGI
# out(options = "text / html") { . . . . } (36.0) -
HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。
...tml; charset=iso-2022-jp
"language" => "ja",
"expires" => Time.now + (3600 * 24 * 30),
"cookie" => [cookie1, cookie2],
"my_header1" => "my_value",
"my_header2" => "my_value"}){ "string" }
@see CGI#header...