pub struct Request {
pub method: Method,
pub url: Url,
pub headers: Headers,
pub body: Body,
pub redirect: RedirectMode,
pub credentials: Credentials,
pub max_redirects: Option<u32>,
pub max_retries: u32,
pub timeout: Duration,
pub ignore_https_errors: bool,
pub net_guard: Option<NetGuard>,
}Expand description
A fully-resolved request the engine can send as-is.
Fields§
§method: Method§url: UrlAbsolute URL with query params already appended.
headers: HeadersAssembled request headers (content-type already set for bodies).
body: Body§redirect: RedirectMode§credentials: Credentials§max_redirects: Option<u32>Redirect cap for redirect: follow: Some(0) = don’t follow,
Some(n) = follow up to n, None = the engine default (20).
max_retries: u32Retry the request on a connection reset up to this many times.
timeout: Duration§ignore_https_errors: boolResolved TLS posture for this request.
net_guard: Option<NetGuard>Sandbox network policy, enforced on the initial URL, every redirect hop, and every resolved address when active.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Request
impl !RefUnwindSafe for Request
impl !Sync for Request
impl !UnwindSafe for Request
impl Send for Request
impl Unpin for Request
impl UnsafeUnpin for Request
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more