Elgg\Http\ResponseFactory::prepareResponse PHP Метод

prepareResponse() публичный Метод

Creates an HTTP response
public prepareResponse ( string $content = '', integer $status = 200, array $headers = [] ) : Response
$content string The response content
$status integer The response status code
$headers array An array of response headers
Результат Symfony\Component\HttpFoundation\Response
    public function prepareResponse($content = '', $status = 200, array $headers = array())
    {
        $header_bag = $this->getHeaders();
        $header_bag->add($headers);
        $response = new Response($content, $status, $header_bag->all());
        $response->prepare($this->request);
        return $response;
    }