From bb4bbc5659a506533eb2d45f102ea394e050cee2 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Sat, 12 Aug 2023 08:48:11 -0600 Subject: document maxredirects on clients --- spartan/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spartan/client.go') diff --git a/spartan/client.go b/spartan/client.go index a98949d..9547f74 100644 --- a/spartan/client.go +++ b/spartan/client.go @@ -15,11 +15,12 @@ import ( // // It carries no state and is reusable simultaneously by multiple goroutines. // -// The zero value is immediately usabble. +// The zero value is immediately usabble, but will not follow redirects. type Client struct{ MaxRedirects int } +// NewClient creates a spartan Client which will follow DefaultMaxRedirects. func NewClient() Client { return Client{MaxRedirects: DefaultMaxRedirects} } -- cgit v1.2.3