From a8ae32056cec6f2505606b62ba05780bffae4f21 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Fri, 26 Nov 2021 18:46:56 -0500 Subject: [PATCH] Add SetClient method --- writeas.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/writeas.go b/writeas.go index 152b1e0..34dc76e 100644 --- a/writeas.go +++ b/writeas.go @@ -110,6 +110,11 @@ func (c *Client) SetApplicationKey(key string) { c.apiKey = key } +// SetClient sets a custom http.Client to use instead of the default. +func (c *Client) SetClient(cl *http.Client) { + c.client = cl +} + // Token returns the user token currently set to the Client. func (c *Client) Token() string { return c.token