Add support for headers, method, body and json path with arrays
This commit is contained in:
1 parent
88d0d8a724
commit
fe3e60dbd4
14 files changed
+531
-234
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
var (
|
||||
client *http.Client
|
||||
)
|
||||
|
||||
func GetHttpClient() *http.Client {
|
||||
if client == nil {
|
||||
client = &http.Client{
|
||||
Timeout: time.Second * 10,
|
||||
}
|
||||
}
|
||||
return client
|
||||
}
|
||||
Reference in new issue
Block a user