Options
All
  • Public
  • Public/Protected
  • All
Menu

Representation of a host and a port. Supports some basic parsing via fromString(input) supporting values such as example.com, example.com:80 10.0.0.1, 10.0.0.1:80, 2001:db8::1 or [2001:db8::1]:80.

Hierarchy

  • HostAndPort

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new HostAndPort(host: string, port: number): HostAndPort

Properties

Readonly host

host: string

Readonly port

port: number

Accessors

hasPort

  • get hasPort(): boolean

Methods

Static compare

Static fromString

Generated using TypeDoc