pub struct SafeClient { /* private fields */ }Expand description
The safe HTTP client that enforces all policies.
Implementations§
Source§impl SafeClient
impl SafeClient
pub fn new(policy: FetchPolicy) -> Self
Sourcepub async fn fetch(
&self,
request: FetchRequest,
) -> Result<FetchResponse, FetchError>
pub async fn fetch( &self, request: FetchRequest, ) -> Result<FetchResponse, FetchError>
Execute a fetch request through the full validation pipeline.
Auto Trait Implementations§
impl !Freeze for SafeClient
impl !RefUnwindSafe for SafeClient
impl Send for SafeClient
impl Sync for SafeClient
impl Unpin for SafeClient
impl !UnwindSafe for SafeClient
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