Struct iron::Url
[-] [+]
[src]
pub struct Url {
pub scheme: String,
pub host: Host,
pub port: u16,
pub path: Vec<String>,
pub username: Option<String>,
pub password: Option<String>,
pub query: Option<String>,
pub fragment: Option<String>,
}HTTP/HTTPS URL type for Iron.
Fields
Methods
impl Url
fn parse(input: &str) -> Result<Url, String>
Create a URL from a string.
The input must be a valid URL in a relative scheme for this to succeed.
HTTP and HTTPS are relative schemes.
fn from_generic_url(raw_url: Url) -> Result<Url, String>
Create a Url from a rust-url Url.
fn into_generic_url(self) -> Url
Create a rust-url Url from a Url.