method

html_response?

rails latest stable - Class: ActionDispatch::ContentSecurityPolicy::Middleware

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

html_response?(headers)
private

No documentation available.

# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 34
        def html_response?(headers)
          if content_type = headers[CONTENT_TYPE]
            /html/.match?(content_type)
          end
        end