-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from xkcoding/master
update fork merge
- Loading branch information
Showing
13 changed files
with
249 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,7 @@ notifications: | |
cache: | ||
directories: | ||
- '$HOME/.m2/repository' | ||
|
||
branches: | ||
only: | ||
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.xkcoding.http.config; | ||
|
||
import com.xkcoding.http.constants.Constants; | ||
import lombok.Data; | ||
|
||
import java.net.Proxy; | ||
|
||
/** | ||
* <p> | ||
* Http 配置类 | ||
* </p> | ||
* | ||
* @author yangkai.shen | ||
* @date Created in 2020-04-29 14:41 | ||
*/ | ||
@Data | ||
public class HttpConfig { | ||
/** | ||
* 超时时长,单位毫秒 | ||
*/ | ||
private int timeout = Constants.DEFAULT_TIMEOUT; | ||
/** | ||
* 代理配置 | ||
*/ | ||
private Proxy proxy; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.xkcoding.http.support; | ||
|
||
import com.xkcoding.http.config.HttpConfig; | ||
|
||
/** | ||
* <p> | ||
* HTTP 抽象类 | ||
* </p> | ||
* | ||
* @author yangkai.shen | ||
* @date Created in 2020-04-29 14:45 | ||
*/ | ||
public abstract class AbstractHttp implements Http { | ||
protected HttpConfig httpConfig; | ||
|
||
public AbstractHttp(HttpConfig httpConfig) { | ||
this.httpConfig = httpConfig; | ||
} | ||
|
||
public void setHttpConfig(HttpConfig httpConfig) { | ||
this.httpConfig = httpConfig; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.