/*
(non-Javadoc)
@see javax.servlet.sip.SipServletMessage#removeHeader(java.lang.String)
765408
public void removeHeader(String name) {
		if(logger.isDebugEnabled()) {
        	logger.debug("removeHeader - name=" + name);
        }
		checkCommitted();
		String hName = getFullHeaderName(name);

		if(hName.trim().equalsIgnoreCase(ContactHeader.NAME)) {
			String header = getHeader(hName);
			if (isSystemHeaderAndNotGruu(getModifiableRule(hName), header)) {
				throw new IllegalArgumentException("Cant remove system header["
						+ hName + "]");
			}
		} else {
			if (isSystemHeader(getModifiableRule(hName))) {
				throw new IllegalArgumentException("Cant remove system header["
						+ hName + "]");
			}
		}

		if (hName.equalsIgnoreCase("From") || hName.equalsIgnoreCase("To")) {
			logger.error("Error, can't remove From or To header [" + hName + "]");
			throw new IllegalArgumentException(
					"Cant remove From or To header, see JSR 289 Section 4.1.2");
		}

		String nameToSearch = getCorrectHeaderName(hName);

		this.message.removeHeader(nameToSearch);

	}
896065
public void setIntHeader (@Nonnull @Nonempty final String sName, final int nValue)
  {
    _setHeader (sName, Integer.toString (nValue));
  }
811966
public void remove(CmsResource res) {

        remove(res.getStructureId(), res.getRootPath(), res.getTypeId());
    }
857086
public static function removeHeader(array $message, $header)
    {
        if (isset($message['headers'])) {
            foreach (array_keys($message['headers']) as $key) {
                if (!strcasecmp($header, $key)) {
                    unset($message['headers'][$key]);
                }
            }
        }

        return $message;
    }
305035
public String removeField(String name)
        throws IllegalStateException
    {
        if (_state!=__MSG_EDITABLE)
            return null;
        return _header.remove(name);
    }
1364102
public void doDelete(String url, HttpResponse result, Map<String, Object> headers, String contentType) {
        httpClient.delete(url, result, headers, contentType);
    }
343425
public void put(HttpHeader header, String value) {
        if (value == null)
            remove(header);
        else
            put(new HttpField(header, value));
    }
531624
@Override
	public void setIntHeader(final String name, final int value) {
		headers.put(name, String.valueOf(value));
	}
1155456
public void setRequestHeader(String header, String value) {
        LOG.entering(CLASS_NAME, "setRequestHeader", new Object[] {header, value});
        HttpRequestUtil.validateHeader(header);
        connection.addRequestProperty(header, value);
    }
293729
public function removeHeader($header)
	{
		if($header instanceof HttpHeaderInterface)
		{
			unset($this->headers[strtolower($header->getFieldName())]);
		}
		else
		{
			unset($this->headers[strtolower($header)]);
		}
		
		return $this;
	}
771122
public void removeHead( int total ) {
		for( int j = total; j < size; j++ ) {
			data[j-total] = data[j];
		}
		size -= total;
	}
226208
public void doDelete(String url, HttpResponse response, Map<String, Object> headers) {
        response.setRequest(url);
        httpClient.delete(url, response, headers);
    }
1283737
private static void excludeForwardedHeaders(HttpConnectSession connectSession) {
        connectSession.clearWriteHeaders(HEADER_FORWARDED);
        connectSession.clearWriteHeaders(HEADER_X_FORWARDED_FOR);
        connectSession.clearWriteHeaders(HEADER_X_FORWARDED_SERVER);
        connectSession.clearWriteHeaders(HEADER_X_FORWARDED_HOST);
        connectSession.clearWriteHeaders(HEADER_X_FORWARDED_PROTO);
    }
412396
public function removeHeader($name) {
        if (true === array_key_exists($name, $this->headers)) {
            unset($this->headers[$name]);
        }
    }
745015
public void removeMessageListener(MessageListener<? extends Message> messageListener) {
        removeListener(messageListener.getChannelIdentifier(), messageListener.getMessageType(), messageListener);
    }
358254
public RequestHeader clearPrincipal() {
        return new RequestHeader(method, uri, protocol, acceptedResponseProtocols, Optional.empty(), headers, lowercaseHeaders);
    }
1246400
@Nonnull
  public final UnifiedResponse removeCaching ()
  {
    // Remove any eventually set headers
    removeExpires ();
    removeCacheControl ();
    removeETag ();
    removeLastModified ();
    m_aResponseHeaderMap.removeHeaders (CHttpHeader.PRAGMA);
    return this;
  }