protected function send_headers($code, $headers) { foreach ($headers as $k => $v) { $this->send_header($k, $v); } }