From 6844355a928b60ffb1006e6b1d9f8af7b44647d5 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 18 Jun 2023 17:41:38 +0200 Subject: Imported and modified evcli's api client code --- external/evcli/http.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 external/evcli/http.go (limited to 'external/evcli/http.go') diff --git a/external/evcli/http.go b/external/evcli/http.go new file mode 100644 index 0000000..f4aae1c --- /dev/null +++ b/external/evcli/http.go @@ -0,0 +1,14 @@ +package evcli + +import ( + "net/http" + "time" +) + +func NewHTTPClient() *http.Client { + c := &http.Client{ + Timeout: 30 * time.Second, + } + + return c +} -- cgit v1.2.3