Struct url::ParseOptions
[−]
[src]
pub struct ParseOptions<'a> { // some fields omitted }
Full configuration for the URL parser.
Methods
impl<'a> ParseOptions<'a>
fn base_url(self, new: Option<&'a Url>) -> Self
Change the base URL
fn log_syntax_violation(self, new: Option<&'a Fn(&'static str)>) -> Self
Call the provided function or closure on non-fatal parse errors.
fn parse(self, input: &str) -> Result<Url, ParseError>
Parse an URL string with the configuration so far.