@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
13 lines • 423 B
TypeScript
export declare enum Protocol {
HTTP = "http",
HTTPS = "https"
}
export declare namespace Protocol {
/**
* Get [[Protocol]] from its string representation.
* @param protocol - Protocol as string, either 'http'/'https' or 'http:'/'https:'.
* @returns Either the matching protocol or undefined
*/
function of(protocol: string): Protocol | undefined;
}
//# sourceMappingURL=protocol.d.ts.map