Skip to main content

updateUrl()

updates the initial URL and parameters that were specified when initializing proxy

updateUrl?: (url?: string, params?: any) => void;

Parameters:

  • url: string - optional, a new URL. If not specified, the currently existing URL will be used.
  • params: object - optional, a configuration object with new parameters. If not specified, clears parameters set earlier.

Example

proxy.updateUrl("https://newCustomUrl.com", { a: "customParam", b: 2 });// url: https://newCustomUrl.com?a=customParam&b=2