src/Skeetr/Client/RPC/Method/Process.php
private function prepareResponse(HTTP\Response $response)
    {
        if ( !Manager::loaded() ) return false;
        session_write_close();

        $values = Manager::values();
        if ( isset($values['header']) ) {
            if ( isset($values['header']['code']) && $values['header']['code'] ) {
                $response->setResponseCode($values['header']['code']);
            }

            if ( isset($values['header']['list']) ) {
                foreach ($values['header']['list'] as $headers) {
                    foreach ($headers as $header) {
                        $response->addHeader($header, false);
                    }
                }
            }
        }

        Manager::reset();
    }
private function prepareResponse(HTTP\Response $response)
    {
        if ( !Manager::loaded() ) return false;
        session_write_close();

        $values = Manager::values();
        if ( isset($values['header']) ) {
            if ( isset($values['header']['code']) && $values['header']['code'] ) {
                $response->setResponseCode($values['header']['code']);
            }

            if ( isset($values['header']['list']) ) {
                foreach ($values['header']['list'] as $headers) {
                    foreach ($headers as $header) {
                        $response->addHeader($header, false);
                    }
                }
            }
        }

        Manager::reset();
    }
Set the headers and the response code to a given $response, class is reset after.

@param  HTTP\Response $response
@return boolean