UrlCodec
A codec for encoding and decoding URL parts.
abstract class UrlCodec {
abstract encodePath(path: string): string
abstract decodePath(path: string): string
abstract encodeSearch(search: string | { [k: string]: unknown; }): string
abstract decodeSearch(search: string): {...}
abstract encodeHash(hash: string): string
abstract decodeHash(hash: string): string
abstract normalize(href: string): string
abstract areEqual(valA: string, valB: string): boolean
abstract parse(url: string, base?: string): {...}
}
Subclasses
Methods
Encodes the path from the provided string |
Decodes the path from the provided string |
Encodes the search string from the provided string or object |
Decodes the search objects from the provided string |
Encodes the hash from the provided string |
Decodes the hash from the provided string |
Checks whether the two strings are equal |
Parses the URL string based on the base URL |
||||||
Parameters
Returns
|