bookclerk_plugin_sdk::http::redirect

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

Redirect follow policy (reqwest-compatible names).

Enums

Policy

pub enum Policy {
    None,
    Limited(usize),
    StopOnQueryContains(&'static str),
}

How many hops to follow after the initial request.

Variants

  • None: Do not follow Location.
  • Limited: Follow at most n hops.
  • StopOnQueryContains: Follow at most 10 hops, but stop when the current URL's query contains needle (OAuth authorization_code capture — do not follow the post-maplanding hop that would drop the code).

Policy::none

pub fn none() -> Self

Policy::None.

Policy::limited

pub fn limited(max: usize) -> Self

Policy::Limited.

Implements: Clone, Copy, Debug, Default, Eq, PartialEq

Generated from crates/bookclerk-plugin-sdk at main · View as Markdown