Ruby 2.3.0 リファレンスマニュアル > ライブラリ一覧 > webrick/httprequestライブラリ > WEBrick::HTTPRequestクラス > content_type

instance method WEBrick::HTTPRequest#content_type

content_type -> String | nil[permalink][rdoc]

リクエストの Content-Type ヘッダを文字列で返します。