Symfony\Component\HttpFoundation\Response::prepare
Prepares the Response before it is sent to the client.
This method tweaks the Response to ensure that it is compliant with RFC 2616. Most of the changes are based on the Request that is "associated" with this Response.
Signature
public function prepare(Request
$request )
Parameters
$request
— Symfony\Component\HttpFoundation\Request- A Request instance
Returns
- Response
- The current response.