pub fn set_component(
url_obj: &Value,
key: &str,
v: &Value,
) -> Result<(), String>Expand description
Assign one URL component through the URL Standard’s setter for it — the
state-override parse url::quirks implements — and rewrite every stored
field from the result. A value the setter rejects leaves the URL as it was
(u.port = 'abc'), as in node; only href throws, since it reparses the
whole URL.