pub struct HttpUrl {
pub url: Url,
/* private fields */
}Available on crate feature
http only.Expand description
An HTTP URL.
The URL scheme is either “http:” or “https:”.
The URL::base and URL::relative functions interpret the path segment of the URL as a Unix-style filesystem path, whereby the path separator is “/”, and “.” and “..” are supported for path traversal.
Fields§
§url: UrlThe Url.
Implementations§
Trait Implementations§
Source§impl URL for HttpUrl
impl URL for HttpUrl
Source§fn context(&self) -> &UrlContext
fn context(&self) -> &UrlContext
The UrlContext used to create this URL.
Source§fn format(&self) -> Option<String>
fn format(&self) -> Option<String>
Format of the URL content’s canonical representation. Read more
Source§fn base(&self) -> Option<UrlRef>
fn base(&self) -> Option<UrlRef>
Returns a URL that is the equivalent of a “base directory” for the URL. Read more
Source§fn conform(&mut self) -> Result<(), UrlError>
fn conform(&mut self) -> Result<(), UrlError>
Available on crate feature
blocking only.Ensures that the URL conforms with the expectations of its functions. If
successful, this function may change the URL appropriately, e.g. a relative
path would be turned into an absolute path. Read more
Source§fn conform_async(&self) -> Result<ConformFuture, UrlError>
fn conform_async(&self) -> Result<ConformFuture, UrlError>
Available on crate feature
async only.Async version of URL::conform. Read more
Source§fn open_async(&self) -> Result<OpenFuture, UrlError>
fn open_async(&self) -> Result<OpenFuture, UrlError>
Available on crate feature
async only.Auto Trait Implementations§
impl Freeze for HttpUrl
impl !RefUnwindSafe for HttpUrl
impl Send for HttpUrl
impl Sync for HttpUrl
impl Unpin for HttpUrl
impl !UnwindSafe for HttpUrl
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
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.