public function header($key, $value) { if (isset($this->_dict[$key]) && $this->_dict[$key] == HTTPHeader::Singleton && !is_null(HTTPHeaders::header($key))) { $header = HTTPHeaders::header($key); $header->setValue($value); return $header; } return new HTTPHeader($key, $value); }