UNPKG

@fastly/as-url

Version:

![npm version](https://img.shields.io/npm/v/@fastly/as-url) ![npm downloads per month](https://img.shields.io/npm/dm/@fastly/as-url)

26 lines (21 loc) 498 B
// Copyright 2021 Fastly, Inc. export class URLProperties { protocol: string = ""; username: string = ""; password: string = ""; hostname: string = ""; port: string = ""; pathname: string = ""; search: string = ""; hash: string = ""; toString(): string { let response = ""; response += this.protocol; response += "//"; response += this.hostname; response += this.pathname; response += this.search; response += this.hash; return response; } }