From 50d65e579fb1fa1b1199ca9a26233cfc9fde27be Mon Sep 17 00:00:00 2001 From: Sunbread Date: Sat, 4 Jan 2020 23:21:43 +0800 Subject: [PATCH] Add yggdrasil.Client() --- yggdrasil/yggdrasil.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/yggdrasil/yggdrasil.go b/yggdrasil/yggdrasil.go index 9bf4f87..a0cad1d 100644 --- a/yggdrasil/yggdrasil.go +++ b/yggdrasil/yggdrasil.go @@ -64,3 +64,9 @@ func rawPost(endpoint string, payload interface{}) (*http.Response, error) { // Do return client.Do(PostRequest) } + +// Client return the HTTP client for Yggdrasil. +// Only used when you want to modify settings of the HTTP client. +func Client() *http.Client { + return &client +}