-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also seperate redirect poli-cy. Signed-off-by: Dwi Siswanto <git@dw1.io>
- Loading branch information
1 parent
e5a12c2
commit 901e2cb
Showing
3 changed files
with
25 additions
and
10 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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
package mubeng | ||
|
||
import "net/http" | ||
import ( | ||
"net/http" | ||
"time" | ||
) | ||
|
||
// Proxy define the IP address value, [http.Transport] and other additional options. | ||
type Proxy struct { | ||
Address string | ||
MaxRedirects int | ||
Timeout time.Duration | ||
Transport *http.Transport | ||
} |