com.xingyuv.http.config.HttpConfig Maven / Gradle / Ivy
package com.xingyuv.http.config;
import com.xingyuv.http.constants.Constants;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.net.Proxy;
/**
*
* Http 配置类
*
*
* @author yangkai.shen
* @date Created in 2020-04-29 14:41
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class HttpConfig {
/**
* 超时时长,单位毫秒
*/
private int timeout = Constants.DEFAULT_TIMEOUT;
/**
* 代理配置
*/
private Proxy proxy;
}