add httpclient add options

This commit is contained in:
holooooo
2021-04-20 17:52:33 +08:00
parent 29849ddb36
commit 575bf62fd3
8 changed files with 716 additions and 80 deletions

View File

@@ -39,7 +39,7 @@ func TestResponse(t *testing.T) {
}
func TestDoRequest(t *testing.T) {
req := Get("https://goolnk.com/33BD2j")
req := Get("https://goolnk.com/")
retryAmount := 1
req.Retries(1)
req.RetryDelay(1400 * time.Millisecond)