るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.052秒)
トップページ > ライブラリ:net/http[x] > バージョン:2.2.0[x] > クエリ:URI[x] > クエリ:type_params[x]

別のキーワード

  1. rexml/document node_type
  2. win32ole ole_type
  3. rss type=
  4. rss type
  5. net/imap media_type

モジュール

検索結果

Net::HTTPHeader#type_params -> Hash (54382.0)

Content-Type のパラメータを {"charset" => "iso-2022-jp"} という形の Hash で返します。

...返します。

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

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

uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.type_params # => {"charset"=>"UTF-8"}
//}...