-
-
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.
* feat(mubeng): rm global `client` var Signed-off-by: Dwi Siswanto <git@dw1.io> * refactor(mubeng): do not join prior proxy hosts Signed-off-by: Dwi Siswanto <git@dw1.io> * feat: add `--rotate-on-error` & `--max-errors` options Signed-off-by: Dwi Siswanto <git@dw1.io> * docs(README): add `--rotate-on-error` & `--max-errors` flags Signed-off-by: Dwi Siswanto <git@dw1.io> * fix(server): use sprint for remaining errs format instead Signed-off-by: Dwi Siswanto <git@dw1.io> --------- Signed-off-by: Dwi Siswanto <git@dw1.io>
- Loading branch information
1 parent
901e2cb
commit 82ae8ac
Showing
8 changed files
with
114 additions
and
83 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
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ import ( | |
) | ||
|
||
var ( | ||
rotate string | ||
handler *Proxy | ||
server *http.Server | ||
dump *httpretty.Logger | ||
|
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,20 +1,14 @@ | ||
package mubeng | ||
|
||
import "net/http" | ||
|
||
var ( | ||
client *http.Client | ||
|
||
// HopHeaders are meaningful only for a single transport-level connection, and are not stored by caches or forwarded by proxies. | ||
HopHeaders = []string{ | ||
"Connection", | ||
"Keep-Alive", | ||
"Proxy-Authenticate", | ||
"Proxy-Authorization", | ||
"Proxy-Connection", | ||
"Te", // canonicalized version of "TE" | ||
"Trailers", | ||
"Transfer-Encoding", | ||
"Upgrade", | ||
} | ||
) | ||
// HopHeaders are meaningful only for a single transport-level connection, and are not stored by caches or forwarded by proxies. | ||
var HopHeaders = []string{ | ||
"Connection", | ||
"Keep-Alive", | ||
"Proxy-Authenticate", | ||
"Proxy-Authorization", | ||
"Proxy-Connection", | ||
"Te", // canonicalized version of "TE" | ||
"Trailers", | ||
"Transfer-Encoding", | ||
"Upgrade", | ||
} |