• Home
  • Raw
  • Download

Lines Matching refs:base_url

335     pub base_url: Option<&'a Url>,  field
366 base_url: None, in for_setter()
381 if let Some(base_url) = self.base_url { in parse_url()
383 self.fragment_only(base_url, input) in parse_url()
384 } else if base_url.cannot_be_a_base() { in parse_url()
387 let scheme_type = SchemeType::from(base_url.scheme()); in parse_url()
389 self.parse_file(input, scheme_type, Some(base_url)) in parse_url()
391 self.parse_relative(input, scheme_type, base_url) in parse_url()
433 let base_file_url = self.base_url.and_then(|base| { in parse_with_scheme()
446 if let Some(base_url) = self.base_url { in parse_with_scheme()
448 && base_url.scheme() == &self.serialization[..scheme_end as usize] in parse_with_scheme()
451 debug_assert!(!base_url.cannot_be_a_base()); in parse_with_scheme()
453 return self.parse_relative(input, scheme_type, base_url); in parse_with_scheme()
569 if let Some(base_url) = base_file_url { in parse_file()
570 let first_segment = base_url.path_segments().unwrap().next().unwrap(); in parse_file()
574 } else if let Some(host_str) = base_url.host_str() { in parse_file()
577 host = base_url.host; in parse_file()
615 if let Some(base_url) = base_file_url { in parse_file()
619 let before_fragment = match base_url.fragment_start { in parse_file()
620 Some(i) => &base_url.serialization[..i as usize], in parse_file()
621 None => &*base_url.serialization, in parse_file()
627 ..*base_url in parse_file()
632 let before_query = match (base_url.query_start, base_url.fragment_start) { in parse_file()
633 (None, None) => &*base_url.serialization, in parse_file()
634 (Some(i), _) | (None, Some(i)) => base_url.slice(..i), in parse_file()
638 self.parse_query_and_fragment(scheme_type, base_url.scheme_end, input)?; in parse_file()
643 ..*base_url in parse_file()
646 Some('#') => self.fragment_only(base_url, input), in parse_file()
649 let before_query = match (base_url.query_start, base_url.fragment_start) { in parse_file()
650 (None, None) => &*base_url.serialization, in parse_file()
651 (Some(i), _) | (None, Some(i)) => base_url.slice(..i), in parse_file()
654 self.shorten_path(SchemeType::File, base_url.path_start as usize); in parse_file()
658 base_url.path_start as usize, in parse_file()
663 base_url.scheme_end, in parse_file()
664 base_url.username_end, in parse_file()
665 base_url.host_start, in parse_file()
666 base_url.host_end, in parse_file()
667 base_url.host, in parse_file()
668 base_url.port, in parse_file()
669 base_url.path_start, in parse_file()
723 base_url: &Url, in parse_relative()
731 let before_fragment = match base_url.fragment_start { in parse_relative()
732 Some(i) => &base_url.serialization[..i as usize], in parse_relative()
733 None => &*base_url.serialization, in parse_relative()
739 ..*base_url in parse_relative()
744 let before_query = match (base_url.query_start, base_url.fragment_start) { in parse_relative()
745 (None, None) => &*base_url.serialization, in parse_relative()
746 (Some(i), _) | (None, Some(i)) => base_url.slice(..i), in parse_relative()
750 self.parse_query_and_fragment(scheme_type, base_url.scheme_end, input)?; in parse_relative()
755 ..*base_url in parse_relative()
758 Some('#') => self.fragment_only(base_url, input), in parse_relative()
769 let scheme_end = base_url.scheme_end; in parse_relative()
770 debug_assert!(base_url.byte_at(scheme_end) == b':'); in parse_relative()
772 .push_str(base_url.slice(..scheme_end + 1)); in parse_relative()
778 let path_start = base_url.path_start; in parse_relative()
779 self.serialization.push_str(base_url.slice(..path_start)); in parse_relative()
789 base_url.scheme_end, in parse_relative()
790 base_url.username_end, in parse_relative()
791 base_url.host_start, in parse_relative()
792 base_url.host_end, in parse_relative()
793 base_url.host, in parse_relative()
794 base_url.port, in parse_relative()
795 base_url.path_start, in parse_relative()
800 let before_query = match (base_url.query_start, base_url.fragment_start) { in parse_relative()
801 (None, None) => &*base_url.serialization, in parse_relative()
802 (Some(i), _) | (None, Some(i)) => base_url.slice(..i), in parse_relative()
806 self.pop_path(scheme_type, base_url.path_start as usize); in parse_relative()
809 if self.serialization.len() == base_url.path_start as usize in parse_relative()
810 && (SchemeType::from(base_url.scheme()).is_special() || !input.is_empty()) in parse_relative()
818 base_url.path_start as usize, in parse_relative()
822 self.parse_path(scheme_type, &mut true, base_url.path_start as usize, input) in parse_relative()
827 base_url.scheme_end, in parse_relative()
828 base_url.username_end, in parse_relative()
829 base_url.host_start, in parse_relative()
830 base_url.host_end, in parse_relative()
831 base_url.host, in parse_relative()
832 base_url.port, in parse_relative()
833 base_url.path_start, in parse_relative()
1456 fn fragment_only(mut self, base_url: &Url, mut input: Input<'_>) -> ParseResult<Url> { in fragment_only()
1457 let before_fragment = match base_url.fragment_start { in fragment_only()
1458 Some(i) => base_url.slice(..i), in fragment_only()
1459 None => &*base_url.serialization, in fragment_only()
1472 ..*base_url in fragment_only()