Lines Matching full:scheme
15 let scheme = url.scheme(); in url_origin() localVariable
16 match scheme { in url_origin()
25 scheme.to_owned(), in url_origin()
29 // TODO: Figure out what to do if the scheme is a file in url_origin()
41 /// The origin is determined based on the scheme as follows:
43 /// - If the scheme is "blob" the origin is the origin of the
46 /// - If the scheme is "ftp", "http", "https", "ws", or "wss",
47 /// then the origin is a tuple of the scheme, host, and port.
48 /// - If the scheme is anything else, the origin is opaque, meaning
57 /// Consists of the URL's scheme, host and port
68 /// Return whether this origin is a (scheme, host, port) tuple
78 Origin::Tuple(ref scheme, ref host, port) => { in ascii_serialization()
79 if default_port(scheme) == Some(port) { in ascii_serialization()
80 format!("{}://{}", scheme, host) in ascii_serialization()
82 format!("{}://{}:{}", scheme, host, port) in ascii_serialization()
92 Origin::Tuple(ref scheme, ref host, port) => { in unicode_serialization()
100 if default_port(scheme) == Some(port) { in unicode_serialization()
101 format!("{}://{}", scheme, host) in unicode_serialization()
103 format!("{}://{}:{}", scheme, host, port) in unicode_serialization()