method
post_format
v1.0.0 -
Show latest stable
- Class:
ActionController::AbstractRequest
post_format()public
Determine whether the body of a POST request is URL-encoded (default), XML, or YAML by checking the Content-Type HTTP header:
Content-Type Post Format application/xml :xml text/xml :xml application/x-yaml :yaml text/x-yaml :yaml * :url_encoded
For backward compatibility, the post format is extracted from the X-Post-Data-Format HTTP header if present.