improve general documentation

This commit is contained in:
Sean McArthur
2019-01-07 14:20:39 -08:00
parent 56eff821fd
commit 691bcfe894
5 changed files with 63 additions and 16 deletions

View File

@@ -16,6 +16,11 @@ use Url;
///
/// The default value will catch redirect loops, and has a maximum of 10
/// redirects it will follow in a chain before returning an error.
///
/// - `limited` can be used have the same as the default behavior, but adjust
/// the allowed maximum redirect hops in a chain.
/// - `none` can be used to disable all redirect behavior.
/// - `custom` can be used to create a customized policy.
#[derive(Debug)]
pub struct RedirectPolicy {
inner: Policy,