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.
//! 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)]pubenumRedirectPolicy{/// 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,}