product-os-request 0.0.55

Product OS : Request provides a fully featured HTTP request library combining elements of reqwest and hyper for async requests with a series of helper methods to allow for easier usage depending upon your needs for one-time or repeat usage.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Redirect policy configuration
//!
//! This module provides types for controlling HTTP redirect behavior.

/// HTTP redirect policy
///
/// Controls how the client handles HTTP redirect responses.
#[cfg(any(feature = "request", feature = "request_std"))]
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum RedirectPolicy {
    /// Do not follow redirects
    None,
    /// Follow redirects up to a maximum number of hops
    Limit(usize),
    /// Use the default redirect policy (typically 10 redirects)
    Default,
}