Drest\Service::renderDeterminedRepresentation PHP Méthode

renderDeterminedRepresentation() public méthode

Write out as result set on the representation object that was determined - if no representation has been determined - defaults to text
public renderDeterminedRepresentation ( DrestCommon\ResultSet $resultSet )
$resultSet DrestCommon\ResultSet
    public function renderDeterminedRepresentation(ResultSet $resultSet)
    {
        $this->getResponse()->setBody($this->representation->output($resultSet));
        $this->getResponse()->setHttpHeader('Content-Type', $this->representation->getContentType());
    }