るりまサーチ

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

別のキーワード

  1. new openssl::bn
  2. new openssl::asn1::asn1data
  3. new openssl::pkey::ec::group
  4. new openssl::x509::certificate
  5. start net::smtp

ライブラリ

モジュール

検索結果

OpenURI::Meta#status -> [String] (39108.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"]
}
//}...