export interface IParsedUrl { /** * A string containing the domain (the hostname) followed by a : and the port (if specified) */ host: string; /** * A string containing the domain (the hostname) */ hostname: string; /** * An array of strings containing each part of the domain from least to most significant. * E.g: www.google.com -> ['www', 'google', 'com'] */ hostnames: string[]; /** * The absolute path of the current url on the domain prefixed with a '/'. */ pathname: string; /** * The string following the character # (if specified). */ hash: string; /** * The entire url. */ href: string; /** * The port number of the request as a string */ port: string; /** * The protocol scheme for the url including ':' */ protocol: string; /** * Any query parameters prefixed with a '?'. */ search: string; /** * If true the url hostname is the same as the current site. */ isSameOrigin: boolean; /** * The number of domain elements in the full domain name that matches the current site. */ sameOriginDegree: number; /** * The original url passed to the parser function. */ original: string; [key: string]: any; }