1件ヒット
[1-1件を表示]
(0.112秒)
ライブラリ
-
cgi
/ core (1)
検索結果
-
CGI
# out(options = "text / html") { . . . . } (61.0) -
HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。
...P ヘッダを生成するための情報を指定します。
例:
cgi = CGI.new
cgi.out{ "string" }
# Content-Type: text/html
# Content-Length: 6
#
# string
cgi.out("text/plain"){ "string" }
# Content-Type: text/plain......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...