Dealing with Content Types; Sending Files; Sending a String as File; Setting ServerRequest is the default request object used in CakePHP. If you are accepting JSON or XML data, see below for how you can access those request bodies. A boolean value indicating whether headers should be set to force download.