@sap-cloud-sdk/connectivity
Version:
SAP Cloud SDK for JavaScript connectivity
12 lines (11 loc) • 419 B
TypeScript
/**
* Supported web protocols for requests made by the SAP Cloud SDK.
*/
export type Protocol = 'http' | 'https' | 'socks';
/**
* @internal
* Get {@link Protocol} from its string representation.
* @param protocol - Protocol as string, either 'http'/'https' or 'http:'/'https:'.
* @returns Either the matching protocol or undefined.
*/
export declare function getProtocol(protocol: string): Protocol | undefined;