aboutsummaryrefslogtreecommitdiff
path: root/anime/client.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@protonmail.ch>2022-02-06 19:02:33 +0530
committerVidhu Kant Sharma <vidhukant@protonmail.ch>2022-02-06 19:02:33 +0530
commit0eb32bb339f66d3416c1088d6372bc7219b6e323 (patch)
treebc5b2a5f60748f60d49f97d9eb934891369fb60e /anime/client.go
parent0d97d71e135cf4fda87acaea56a376c264f90a59 (diff)
now a single http.Client is responsible for all the HTTP requests.
Diffstat (limited to 'anime/client.go')
-rw-r--r--anime/client.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/anime/client.go b/anime/client.go
index 464854a..25c71e1 100644
--- a/anime/client.go
+++ b/anime/client.go
@@ -16,7 +16,12 @@
package anime
+import (
+ "net/http"
+)
+
// MyAnimeList Client for mal2go/anime package
type AnimeClient struct {
AuthToken, RefreshToken string
+ HttpClient http.Client
}