Class UrlBuilder

Index

Constructor methods

Methods

Constructor methods

constructor(path: string): UrlBuilder

Parameters

  • path: string

Returns

UrlBuilder

Methods

public addKeyValueQueryString(key: string, value: string)

Parameters

  • key: string
  • value: string

public combinePath(path: string)

Parameters

  • path: string

public get_url(): string

Returns the resulting url

Returns

string

public static removeQueryString(url: string, key: string): string

Parameters

  • url: string
  • key: string

Returns

string

public static replaceOrAddQueryString(url: string, key: string, value: string): string

Parameters

  • url: string
  • key: string
  • value: string

Returns

string

public toString(): string

Same as get_url()

Returns

string

public static urlCombine(path1: string, path2: string): string

Parameters

  • path1: string
  • path2: string

Returns

string