From dfaf25d1cb041ed156b4c9366abf2b80f5d0b357 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 18 May 2017 11:29:32 -0700 Subject: [PATCH] add defaults to docs about gzip and redirect --- src/client.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client.rs b/src/client.rs index 2b9cd6a..ad50a58 100644 --- a/src/client.rs +++ b/src/client.rs @@ -67,11 +67,15 @@ impl Client { } /// Enable auto gzip decompression by checking the ContentEncoding response header. + /// + /// Default is enabled. pub fn gzip(&mut self, enable: bool) { self.inner.auto_ungzip.store(enable, Ordering::Relaxed); } /// Set a `RedirectPolicy` for this client. + /// + /// Default will follow redirects up to a maximum of 10. pub fn redirect(&mut self, policy: RedirectPolicy) { *self.inner.redirect_policy.lock().unwrap() = policy; }