るりまサーチ

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

別のキーワード

  1. rake ext
  2. irb/ext/save-history save_history
  3. pathname sub_ext
  4. irb/ext/tracer use_tracer
  5. irb/ext/tracer use_tracer=

ライブラリ

クラス

モジュール

検索結果

CGI::QueryExtension#request_method -> String (24317.0)

ENV['REQUEST_METHOD'] を返します。

...ENV['REQUEST_METHOD'] を返します。...

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

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

...リクエスト (REQUEST_METHOD == "HEAD") の場合は HTTP ヘッダのみを出力します。

charset が "iso-2022-jp"・"euc-jp"・"shift_jis" のいずれかで
ある場合は文字列エンコーディングを自動変換し、language を "ja"にします。

@param options Hash か文...
...cgi = CGI.new
cgi.out{ "string" }
# Content-Type: text/html
# Content-Length: 6
#
# string

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

cgi.out(...
..."connection" => "close",
"type" => "text/html",
"charset" => "iso-2022-jp",
# Content-Type: text/html; charset=iso-2022-jp
"language" => "ja",
"expires" => Time.now + (3600 * 24 * 30...