るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.011秒)
トップページ > クエリ:status[x] > バージョン:2.4.0[x] > ライブラリ:open-uri[x]

別のキーワード

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

モジュール

検索結果

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

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

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

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