UNPKG

498 BPlain TextView Raw
1// Copyright 2021 Fastly, Inc.
2
3export class URLProperties {
4 protocol: string = "";
5 username: string = "";
6 password: string = "";
7 hostname: string = "";
8 port: string = "";
9 pathname: string = "";
10 search: string = "";
11 hash: string = "";
12
13 toString(): string {
14 let response = "";
15
16 response += this.protocol;
17 response += "//";
18 response += this.hostname;
19 response += this.pathname;
20 response += this.search;
21 response += this.hash;
22
23 return response;
24 }
25}