Sets the base URL for the HTTP requests made by the requestInstance.

// Set the base URL to the development environment
setBaseUrl('https://api.dev.example.com');

// Now all requests made by requestInstance will use this base URL
  • Parameters

    • baseUrl: string

      The base URL to be set for the requestInstance. This should be a valid URL string that the HTTP client can use as the base for constructing request URLs.

    Returns void

    This function does not return a value.