-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
asep.rojali
committed
Jun 22, 2023
1 parent
2112be4
commit c4098e3
Showing
6 changed files
with
160 additions
and
98 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
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,43 @@ | ||
package io.github.avew; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.concurrent.TimeUnit; | ||
|
||
import static io.github.avew.CustomHttpConfig.mask; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class CustomProxy { | ||
|
||
@Builder.Default | ||
private boolean proxy = false; | ||
@Builder.Default | ||
private boolean auth = false; | ||
private String username; | ||
private String password; | ||
@Builder.Default | ||
private List<String> urlSkip = new ArrayList<>(); | ||
private String host; | ||
private int port; | ||
|
||
@Override | ||
public String toString() { | ||
return "CustomProxy{" + | ||
"proxy=" + proxy + | ||
", auth=" + auth + | ||
", username='" + mask(username) + '\'' + | ||
", password='" + mask(password) + '\'' + | ||
", urlSkip=" + urlSkip + | ||
", host='" + host + '\'' + | ||
", port=" + port + | ||
'}'; | ||
} | ||
} |
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,7 @@ | ||
package io.github.avew; | ||
|
||
public enum HttpTls { | ||
TLS1_1, | ||
TLS1_2, | ||
TLS1_3 | ||
} |
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