method

parse_formatted_parameters

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ActionDispatch::Http::Parameters
parse_formatted_parameters(parsers) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/http/parameters.rb, line 87
        def parse_formatted_parameters(parsers)
          return yield if content_length.zero? || content_mime_type.nil?

          strategy = parsers.fetch(content_mime_type.symbol) { return yield }

          begin
            strategy.call(raw_post)
          rescue # JSON or Ruby code block errors.
            log_parse_error_once
            raise ParseError, "Error occurred while parsing request parameters"
          end
        end
Register or log in to add new notes.