UNPKG

@sap-cloud-sdk/core

Version:
10 lines 533 B
import { Destination } from './destination'; import { Protocol } from './protocol'; /** * Extracts the http protocol from the destination URL. The default value is http if no protocol is given. * @param destination - URL of this destination is parsed * @throws Error in case a unsupported protocol is given in the destination URL like rfc://example.com. * @returns The protocol, either https or http. */ export declare function getProtocolOrDefault(destination: Destination): Protocol; //# sourceMappingURL=get-protocol.d.ts.map