endpoint.d.ts 575 B

123456789101112131415161718192021222324252627
  1. export class Endpoint {
  2. /**
  3. * Constructs a new endpoint given an endpoint URL.
  4. */
  5. constructor(url: string);
  6. /**
  7. * The host portion of the endpoint including the port, e.g., example.com:80.
  8. */
  9. host: string;
  10. /**
  11. * The host portion of the endpoint, e.g., example.com.
  12. */
  13. hostname: string;
  14. /**
  15. * The full URL of the endpoint.
  16. */
  17. href: string;
  18. /**
  19. * The port of the endpoint.
  20. */
  21. port: number;
  22. /**
  23. * The protocol (http or https) of the endpoint URL.
  24. */
  25. protocol: string;
  26. }