MCPcopy
hub / github.com/ampproject/amphtml / parse_

Method parse_

src/service/url-impl.js:58–63  ·  view source on GitHub ↗

* @param {string|!Location} url * @return {!Location} * @private

(url)

Source from the content-addressed store, hash-verified

56 * @private
57 */
58 parse_(url) {
59 if (typeof url !== 'string') {
60 return url;
61 }
62 return this.parse(url);
63 }
64
65 /**
66 * Returns whether the URL has valid protocol.

Callers 7

getSourceOriginMethod · 0.95
getSourceUrlMethod · 0.95
resolveRelativeUrlMethod · 0.95
isProxyOriginMethod · 0.95
isSecureMethod · 0.95
getWinOriginMethod · 0.95
getCdnUrlOnOriginMethod · 0.95

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected