版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

XMLHttpRequestURLUtility.d.ts 723 B

пре 1 година
1234567891011121314151617181920212223242526272829303132333435
  1. /// <reference types="node" />
  2. import { URL } from 'url';
  3. /**
  4. * URL utility.
  5. */
  6. export default class XMLHttpRequestURLUtility {
  7. /**
  8. * Returns "true" if SSL.
  9. *
  10. * @param url URL.
  11. * @returns "true" if SSL.
  12. */
  13. static isSSL(url: URL): boolean;
  14. /**
  15. * Returns "true" if SSL.
  16. *
  17. * @param url URL.
  18. * @returns "true" if SSL.
  19. */
  20. static isLocal(url: URL): boolean;
  21. /**
  22. * Returns "true" if protocol is valid.
  23. *
  24. * @param url URL.
  25. * @returns "true" if valid.
  26. */
  27. static isSupportedProtocol(url: URL): boolean;
  28. /**
  29. * Returns host.
  30. *
  31. * @param url URL.
  32. * @returns Host.
  33. */
  34. static getHost(url: URL): string;
  35. }