@@ -0,0 +1,2441 @@
+package com.qiniu.http;%0A%0Aimport com.qiniu.util.StringMap;%0A%0Aimport java.util.List;%0Aimport java.util.Map;%0Aimport java.util.Set;%0A%0Apublic class Headers %7B%0A    // %E4%BB%A3%E7%90%86%E4%BA%86%E9%83%A8%E5%88%86 okhttp3.Headers %E6%96%B9%E6%B3%95 //%0A    okhttp3.Headers innerHeaders;%0A%0A    Headers(Builder builder) %7B%0A        innerHeaders = builder.innerBuilder.build();%0A    %7D%0A%0A    private Headers() %7B%0A%0A    %7D%0A%0A    /**%0A     * Returns the last value corresponding to the specified field, or null.%0A     */%0A    public String get(String name) %7B%0A        return innerHeaders.get(name);%0A    %7D%0A%0A    /**%0A     * Returns an immutable case-insensitive set of header names.%0A     */%0A    public Set%3CString%3E names() %7B%0A        return innerHeaders.names();%0A    %7D%0A%0A    /**%0A     * Returns an immutable list of the header values for %7B@code name%7D.%0A     */%0A    public List%3CString%3E values(String name) %7B%0A        return innerHeaders.values(name);%0A    %7D%0A%0A    public Builder newBuilder() %7B%0A        Builder builder = new Builder();%0A        builder.innerBuilder = innerHeaders.newBuilder();%0A        return builder;%0A    %7D%0A%0A    public static Headers of(Map%3CString, String%3E headers) %7B%0A        Headers inner = new Headers();%0A        inner.innerHeaders = okhttp3.Headers.of(headers);%0A        return inner;%0A    %7D%0A%0A    public static Headers of(StringMap headers) %7B%0A        final Builder builder = new Builder();%0A        if (headers == null) %7B%0A            return builder.build();%0A        %7D%0A        ;%0A        headers.forEach(new StringMap.Consumer() %7B%0A            @Override%0A            public void accept(String key, Object value) %7B%0A                if (null != value) %7B%0A                    builder.add(key, value.toString());%0A                %7D%0A            %7D%0A        %7D);%0A        return builder.build();%0A    %7D%0A%0A%0A    public static final class Builder %7B%0A        // %E4%BB%A3%E7%90%86%E4%BA%86%E9%83%A8%E5%88%86 okhttp3.Headers.Builder %E6%96%B9%E6%B3%95 //%0A        private okhttp3.Headers.Builder innerBuilder;%0A%0A        public Builder() %7B%0A            innerBuilder = new okhttp3.Headers.Builder();%0A        %7D%0A%0A        public Builder add(String name, String value) %7B%0A            innerBuilder.add(name, value);%0A            return this;%0A        %7D%0A%0A        public Builder addAll(Headers headers) %7B%0A            innerBuilder.addAll(headers.innerHeaders);%0A            return this;%0A        %7D%0A%0A        public Builder set(String name, String value) %7B%0A            innerBuilder.set(name, value);%0A            return this;%0A        %7D%0A%0A        public Headers build() %7B%0A            return new Headers(this);%0A        %7D%0A    %7D%0A%7D%0A

add Headers