1件ヒット
[1-1件を表示]
(0.113秒)
ライブラリ
- open-uri (1)
モジュール
-
OpenURI
:: Meta (1)
検索結果
-
OpenURI
:: Meta # status -> [String] (63679.0) -
対象となるリソースのステータスコードと reason phrase を文字列の配列として返します。
対象となるリソースのステータスコードと reason phrase を文字列の配列として返します。
//emlist[例][ruby]{
require 'open-uri'
URI.open('http://example.com/') {|f|
p f.status #=> ["200", "OK"]
}
//}