All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.jfunc.http.component.okhttp3.DefaultOkHttp3HeaderHandler Maven / Gradle / Ivy

package top.jfunc.http.component.okhttp3;

import okhttp3.Request;
import top.jfunc.http.request.HttpRequest;
import top.jfunc.http.component.AbstractHeaderHandler;
import top.jfunc.http.util.OkHttp3Util;
import top.jfunc.common.utils.MultiValueMap;

import java.io.IOException;

/**
 * @author xiongshiyan at 2020/1/6 , contact me with email [email protected] or phone 15208384257
 */
public class DefaultOkHttp3HeaderHandler extends AbstractHeaderHandler {
    @Override
    protected void doConfigHeaders(Request.Builder builder, HttpRequest httpRequest, MultiValueMap handledHeaders) throws IOException {
        OkHttp3Util.setRequestHeaders(builder , httpRequest.getContentType() , handledHeaders);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy