framework/web/HtmlResponseFormatter.php
public function format($response)
    {
        if (stripos($this->contentType, 'charset') === false) {
            $this->contentType .= '; charset=' . $response->charset;
        }
        $response->getHeaders()->set('Content-Type', $this->contentType);
        if ($response->data !== null) {
            $response->content = $response->data;
        }
    }
public function format($response)
    {
        if (stripos($this->contentType, 'charset') === false) {
            $this->contentType .= '; charset=' . $response->charset;
        }
        $response->getHeaders()->set('Content-Type', $this->contentType);
        if ($response->data !== null) {
            $response->content = $response->data;
        }
    }
public function format ( $ response ) { if ( stripos ( $ this -> contentType , 'charset' ) === false ) { $ this -> contentType .= '; charset=' . $ response -> charset ; } $ response -> getHeaders ( ) -> set ( 'Content-Type' , $ this -> contentType ) ; if ( $ response -> data !== null ) { $ response -> content = $ response -> data ; } }
Formats the specified response.
@param Response $response the response to be formatted.
Formats the specified response .