Skip to main content

reparse

Function reparse 

Source
pub fn reparse(url: &Value)
Expand description

Re-parse url from the href just assigned to it.

href is not a component: it is the WHOLE URL, so setting it replaces every other field. Treating it as one more stored string left u.host and u.pathname reporting the old URL’s values while u.href showed the new one. An unparseable value is ignored, which is what node does — its href setter throws only for a value no parser can accept, and this parser is the one deciding that.