|
1234567891011121314151617181920212223242526272829303132333435 |
- /// <reference types="node" />
- import { URL } from 'url';
- /**
- * URL utility.
- */
- export default class XMLHttpRequestURLUtility {
- /**
- * Returns "true" if SSL.
- *
- * @param url URL.
- * @returns "true" if SSL.
- */
- static isSSL(url: URL): boolean;
- /**
- * Returns "true" if SSL.
- *
- * @param url URL.
- * @returns "true" if SSL.
- */
- static isLocal(url: URL): boolean;
- /**
- * Returns "true" if protocol is valid.
- *
- * @param url URL.
- * @returns "true" if valid.
- */
- static isSupportedProtocol(url: URL): boolean;
- /**
- * Returns host.
- *
- * @param url URL.
- * @returns Host.
- */
- static getHost(url: URL): string;
- }
|