Flowdock
method

post_format

Importance_1
v1.0.0 - Show latest stable - 0 notes - 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.

Show source
Register or log in to add new notes.