るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.085秒)

別のキーワード

  1. uri build
  2. uri extract
  3. uri new
  4. open-uri open
  5. uri regexp

ライブラリ

モジュール

検索結果

OpenURI::Meta#status -> [String] (63343.0)

対象となるリソースのステータスコードと reason phrase を文字列の配列として返します。

対象となるリソースのステータスコードと reason phrase を文字列の配列として返します。

//emlist[例][ruby]{
require 'open-uri'
open('http://example.com/') {|f|
p f.status #=> ["200", "OK"]
}
//}