bookclerk_plugin_sdk::http::redirect
Redirect follow policy (reqwest-compatible names).
pub enum Policy {
None,
Limited(usize),
StopOnQueryContains(&'static str),
}
How many hops to follow after the initial request.
Variants
None: Do not followLocation.Limited: Follow at mostnhops.StopOnQueryContains: Follow at most 10 hops, but stop when the current URL's query containsneedle(OAuthauthorization_codecapture — do not follow the post-maplanding hop that would drop the code).
pub fn none() -> Self
pub fn limited(max: usize) -> Self
Implements: Clone, Copy, Debug, Default, Eq, PartialEq
Generated from crates/bookclerk-plugin-sdk at main · View as Markdown