Method: ActionDispatch::RequestEncoder.parser

Defined in:
lib/action_dispatch/testing/request_encoder.rb

.parser(content_type) ⇒ Object



42
43
44
45
# File 'lib/action_dispatch/testing/request_encoder.rb', line 42

def self.parser(content_type)
  type = Mime::Type.lookup(content_type).ref if content_type
  encoder(type).response_parser
end