pub struct ValidatedFetchUrl { /* private fields */ }Expand description
Canonical URL safe to pass into DNS and per-hop transport validation.
Implementations§
Source§impl ValidatedFetchUrl
impl ValidatedFetchUrl
Sourcepub const fn scheme(&self) -> FetchUrlScheme
pub const fn scheme(&self) -> FetchUrlScheme
Returns the validated scheme.
Sourcepub fn resolve_redirect(
&self,
location: &str,
policy: &FetchUrlPolicy,
) -> Result<Self, FetchUrlPolicyError>
pub fn resolve_redirect( &self, location: &str, policy: &FetchUrlPolicy, ) -> Result<Self, FetchUrlPolicyError>
Resolves one redirect location against this URL.
§Errors
Returns an error when Location is malformed or violates the selected
URL policy.
Trait Implementations§
Source§impl Clone for ValidatedFetchUrl
impl Clone for ValidatedFetchUrl
Source§impl Debug for ValidatedFetchUrl
impl Debug for ValidatedFetchUrl
impl Eq for ValidatedFetchUrl
Source§impl Hash for ValidatedFetchUrl
impl Hash for ValidatedFetchUrl
Source§impl PartialEq for ValidatedFetchUrl
impl PartialEq for ValidatedFetchUrl
impl StructuralPartialEq for ValidatedFetchUrl
Auto Trait Implementations§
impl Freeze for ValidatedFetchUrl
impl RefUnwindSafe for ValidatedFetchUrl
impl Send for ValidatedFetchUrl
impl Sync for ValidatedFetchUrl
impl Unpin for ValidatedFetchUrl
impl UnsafeUnpin for ValidatedFetchUrl
impl UnwindSafe for ValidatedFetchUrl
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.