设置响应的Header
@param name 名
@param value 值，可以是String，Date， int
162295
public static void setHeader(String name, Object value) {
		ServletUtil.setHeader(getServletResponse(), name, value);
	}
1060294
public long getDateHeader(String name) {

        if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
            checkRequestObjectInUse();
        }
        // 321485
        // PK80362 Start
        // If the getDateHeader method cannot translate the header to a Date object, an IllegalArgumentException is thrown
        // long header = _request.getDateHeader(name);
        long header = -1;
        if ( (suppressHeadersInRequest == null) || !(isHeaderinSuppressedHeadersList(name))){       				
            header = _request.getDateHeader(name);
        }// PK80362 End
        if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
            logger.logp(Level.FINE, CLASS_NAME,"getDateHeader", "this->"+this+": "+" name --> " + name + " header --> " + String.valueOf(header));
        }
        return header;
    }
1064684
public static void header(Header header, String value) {
        Objects.requireNonNull(header, Required.HEADER.toString());
        
        Map<Header, String> newHeaders = new EnumMap<>(headers);
        newHeaders.put(header, value);
        headers = newHeaders;
    }
1031341
def set_header(self, name, value):
        '''  '''
        self._headers[_hkey(name)] = [str(value)]
1006437
public RouteContext header(String name, String value) {
        this.response.header(name, value);
        return this;
    }
1213288
function(name, value) {
    var header = { raw: value };

    name = Utils.headerize(name);

    if(this.headers[name]) {
      this.headers[name].push(header);
    } else {
      this.headers[name] = [header];
    }
  }
81396
public void addParamHeader(String name, String value) {
        addParam(name, value, NameValuePair.TYPE_HEADER);
    }
1030226
public TrailingHeaders addHeader(CharSequence name, Object value) {
        lastHttpContent.trailingHeaders().add(name, value);
        return this;
    }
301819
@Override
    public String header(String name) {
        List<String> list = request.headers().get(name);
        if (list != null && !list.isEmpty()) {
            return list.get(0);
        }
        return null;
    }
901741
public void setHeader(String name, String value) {
//		int pos = 0;
//		int crlfpos = 0;
        Pattern pattern = null;

        if (getHeaders(name) == null && value != null) {
            // header value not found, append to end
            addHeader(name, value);
        } else {
            pattern = getHeaderRegex(name);
            Matcher matcher = pattern.matcher(mMsgHeader);
            if (value == null) {
                // delete header
                mMsgHeader = matcher.replaceAll("");
            } else {
                // replace header
                String newString = name + ": " + value + mLineDelimiter;
                mMsgHeader = matcher.replaceAll(Matcher.quoteReplacement(newString));
            }

            // set into hashtable
            replaceInternalHeaderFields(name, value);
        }
    }
943542
public void addDateHeader(String name, long value) 
    {
        try{_httpResponse.addDateField(name,value);}
        catch(IllegalStateException e){LogSupport.ignore(log,e);}
    }
588120
public void set(AsciiString name, String value){
        if(name==null)
            return;
        if(value==null){
            remove(name);
            return;
        }
        Header head = entry(name, true);
        if(head.value==null)
            head.value = value;
        else{
            head.value = value;
            Header next = head.sameNext;
            head.sameNext = null;
            head.samePrev = head;
            removeSameNext(next);
        }
        assert validateLinks();
    }
85044
public T header(Header name, String value, boolean isOverride) {
		return header(name.toString(), value, isOverride);
	}
373142
@SuppressWarnings("unchecked")
	public T addHeader(final String name, final String value) {
		List<String> values = new ArrayList<String>();
		values.add(value);

		this.headers.put(name, values);
		return (T) this;
	}
85397
public String getHeaderValue(String name) {
        if (headers == null) {
            return null;
        }
        return headers.get(name);
    }
430100
protected void header(String name, String value){
        RequestContext.getHttpResponse().addHeader(name, value);
    }
10442
function(name, value) {
    var header = { raw: value };
    this.headers[Utils.headerize(name)] = [header];
  }