るりまサーチ

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

別のキーワード

  1. psych plain
  2. scalar plain
  3. psych plain=
  4. scalar plain=
  5. smtp auth_plain

クラス

キーワード

検索結果

CGI#header(options = "text/html") -> String (14.0)

HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。

...成するための情報を指定します。

例:
header
# Content-Type: text/html

header("text/plain")
# Content-Type: text/plain

header({"nph" => true,
"status" => "OK", # == "200 OK"
# "status" =>...

CGI#out(options = "text/html") { .... } (14.0)

HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。

...}
# Content-Type: text/html
# Content-Length: 6
#
# string

cgi.out("text/plain"){ "string" }
# Content-Type: text/plain
# Content-Length: 6
#
# string

cgi.out({"nph" => true,
"st...