Lines Matching refs:protocol
38 const { protocol, href } = url;
41 if (protocol === 'file:') {
44 } else if (protocol === 'data:') {
52 protocol === 'https:' ||
53 protocol === 'http:'
124 * throws an error if the protocol is not one of the protocols
130 // Avoid accessing the `protocol` property due to the lazy getters.
131 const protocol = parsed?.protocol;
133 protocol &&
134 protocol !== 'file:' &&
135 protocol !== 'data:' &&
136 protocol !== 'node:' &&
140 protocol !== 'https:' &&
141 protocol !== 'http:'