るりまサーチ (Ruby 2.7.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.010秒)
トップページ > バージョン:2.7.0[x] > クエリ:status[x] > モジュール:OpenURI::Meta[x]

別のキーワード

  1. _builtin status
  2. openssl status
  3. cgi http_status
  4. getoptlong status_yet
  5. getoptlong status_started

ライブラリ

検索結果

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

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

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

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