@contiva/sap-integration-suite-client
Version:
SAP Cloud Platform Integration API Client
17 lines (16 loc) • 494 B
TypeScript
/**
* Utility for extracting hostname from URLs
*
* @module hostname-extractor
*/
/**
* Extracts the hostname from a base URL
*
* @param baseUrl - The base URL to extract hostname from
* @returns The hostname without protocol and path
*
* @example
* extractHostname('https://tenant.integrationsuitetrial-api.eu10.hana.ondemand.com/api/v1')
* // Returns: 'tenant.integrationsuitetrial-api.eu10.hana.ondemand.com'
*/
export declare function extractHostname(baseUrl: string): string;