Method: Rack::Request::Helpers#media_type_params
- Defined in:
- lib/rack/request.rb
#media_type_params ⇒ Object
The media type parameters provided in CONTENT_TYPE as a Hash, or an empty Hash if no CONTENT_TYPE or media-type parameters were provided. e.g., when the CONTENT_TYPE is “text/plain;charset=utf-8”, this method responds with the following Hash:
{ 'charset' => 'utf-8' }
457 458 459 |
# File 'lib/rack/request.rb', line 457 def media_type_params MediaType.params(content_type) end |