public function ResponseInterface::prepare in RESTful 7.2
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.
Parameters
RequestInterface $request: A Request instance
1 method overrides ResponseInterface::prepare()
- Response::prepare in src/
Http/ Response.php - Prepares the Response before it is sent to the client.
File
- src/
Http/ ResponseInterface.php, line 43 - Contains \Drupal\restful\Http\ResponseInterface.
Class
Namespace
Drupal\restful\HttpCode
public function prepare(RequestInterface $request);