public function send()
    {
        header($this->getStatusStr());

        foreach($this->headers as $header => $value) {
            header(sprintf("%s: %s", $header, implode(',', $value)));
        }

        $body = $this->getBody();

        if ($body->isAttached()) {
            $body->rewind();
            while (!$body->eof()) {
                echo $body->read($this->bodySize);
            }
        }
    }
public function send()
    {
        header($this->getStatusStr());

        foreach($this->headers as $header => $value) {
            header(sprintf("%s: %s", $header, implode(',', $value)));
        }

        $body = $this->getBody();

        if ($body->isAttached()) {
            $body->rewind();
            while (!$body->eof()) {
                echo $body->read($this->bodySize);
            }
        }
    }
public function send ( ) { header ( $ this -> getStatusStr ( ) ) ; foreach ( $ this -> headers as $ header => $ value ) { header ( sprintf ( "%s: %s" , $ header , implode ( ',' , $ value ) ) ) ; } $ body = $ this -> getBody ( ) ; if ( $ body -> isAttached ( ) ) { $ body -> rewind ( ) ; while ( ! $ body -> eof ( ) ) { echo $ body -> read ( $ this -> bodySize ) ; } } }
Send the Response object over the wire
Send the Response object over the wire