public Method

AbstractRequest.content_type

The MIME type of the HTTP request, such as Mime::XML.

For backward compatibility, the post format is extracted from the X-Post-Data-Format HTTP header if present.

Source Code

# File action_controller/request.rb, line 78
def content_type
  @content_type ||= Mime::Type.lookup(content_type_without_parameters)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.