るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.010秒)
トップページ > クエリ:meta[x] > クエリ:status[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. meta charset
  2. open-uri meta
  3. meta meta
  4. meta base_uri

ライブラリ

モジュール

検索結果

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

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

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

//emlist[例][ruby]{
require 'open-uri'
open('http://example.com/') {|f|
p f.status #=> ["200", "OK"]
}
//}...
...対象となるリソースのステータスコードと reason phrase を文字列の配列として返します。

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