public String getHeader(Short key) {
        if (key != null && headerCache != null) {
            return headerCache.get(key);
        }
        return null;
    }
Gets header.

@param key the key
@return the header
core/api/src/main/java/com/alipay/sofa/rpc/transport/ChannelContext.java