pub struct Session { /* private fields */ }Implementations§
Source§impl Session
impl Session
pub fn builder() -> SessionBuilder
pub fn new() -> Self
pub fn browser(browser: Browser) -> Self
pub fn tab(&self) -> Tab
pub fn with_proxy(&self, config: impl Into<ProxyConfig>) -> Self
pub fn proxy_url(&self) -> Option<ProxyUrl>
pub fn fresh_pool(&self) -> Self
pub fn with_redirect(&self, policy: RedirectPolicy) -> Self
pub fn with_base_url(&self, url: impl IntoUrl) -> Result<Self>
pub fn host_stats(&self) -> Vec<HostStats>
pub fn pool_stats(&self) -> PoolStats
pub async fn preconnect(&self, url: impl IntoUrl) -> Result<()>
pub fn request(&self, method: Method, url: impl IntoUrl) -> RequestBuilder
pub async fn execute(&self, req: Request<Body>) -> Result<Response>
pub fn get(&self, url: impl IntoUrl) -> RequestBuilder
pub fn post(&self, url: impl IntoUrl) -> RequestBuilder
pub fn put(&self, url: impl IntoUrl) -> RequestBuilder
pub fn patch(&self, url: impl IntoUrl) -> RequestBuilder
pub fn delete(&self, url: impl IntoUrl) -> RequestBuilder
pub fn head(&self, url: impl IntoUrl) -> RequestBuilder
Source§impl Session
impl Session
pub fn identity(&self) -> SessionIdentity
pub fn with_identity(&self, identity: Identity) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Session
impl !UnwindSafe for Session
impl Freeze for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more