@deepkit/core
Version:
Deepkit core library
14 lines (13 loc) • 402 B
TypeScript
/** @group Network */
export declare class ParsedHost {
host: string;
port: number;
unixSocket: string;
get isUnixSocket(): boolean;
get isHostname(): boolean;
get hostWithIp(): string;
toString(): string;
getWebSocketUrl(secure?: boolean): string;
getHttpUrl(secure?: boolean): string;
}
export declare function parseHost(hostWithIpOrUnixPath: string): ParsedHost;