Method: Rack::Request::Helpers#parseable_data?
- Defined in:
- lib/rack/request.rb
permalink #parseable_data? ⇒ Boolean
Determine whether the request body contains data by checking the request media_type against registered parse-data media-types
479 480 481 |
# File 'lib/rack/request.rb', line 479 def parseable_data? PARSEABLE_DATA_MEDIA_TYPES.include?(media_type) end |