るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.157秒)
トップページ > クエリ:i[x] > クエリ:l[x] > クエリ:sub_type[x]

別のキーワード

  1. kernel $-l
  2. matrix l
  3. _builtin $-l
  4. lupdecomposition l
  5. $-l _builtin

ライブラリ

モジュール

検索結果

Net::HTTPHeader#sub_type -> String|nil (18307.0)

"text/html" における "html" のようなサブタイプを表す 文字列を返します。

..."text/html" における "html" のようなサブタイプを表す
文字列を返します。

Content-Type: ヘッダフィールドが存在しない場合には nil を返します。

//emlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP...
....get_response(uri)
res.sub_type # => "html"
//}...