- content_type -> String|nil[permalink][rdoc][edit]
- 
"text/html" のような Content-Type を表す文字列を返します。 Content-Type: ヘッダフィールドが存在しない場合には nil を返します。 例 require 'net/http' uri = URI.parse('http://www.example.com/comments.cgi?post=comment') req = Net::HTTP::Post.new(uri.request_uri) req.content_type # => nil req.content_type = 'multipart/form-data' req.content_type # => "multipart/form-data"