1件ヒット
[1-1件を表示]
(0.081秒)
ライブラリ
- open-uri (1)
モジュール
-
OpenURI
:: Meta (1)
検索結果
-
OpenURI
:: Meta # content _ type -> String (54373.0) -
対象となるリソースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。 Content-Type ヘッダがない場合は、"application/octet-stream" を返します。
対象となるリソースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content-Type ヘッダがない場合は、"application/octet-stream" を返します。
//emlist[例][ruby]{
require 'open-uri'
open('http://www.ruby-lang.org/') {|f|
p f.content_type #=> "text/html"
}
//}