@sap-cloud-sdk/http-client
Version:
SAP Cloud SDK for JavaScript http-client
26 lines (25 loc) • 1.15 kB
TypeScript
import type { OriginOptionsInternal } from './http-client-types';
/**
* Filter disallowed keys from a given custom request config object.
* @param customRequestConfig - a given custom request config object to be filtered
* @param disallowedKeys - A list of keys that are not allowed to be customized.
* @returns Filtered custom request config object.
* @internal
*/
export declare function filterCustomRequestConfig(customRequestConfig: Record<string, string>, disallowedKeys?: string[]): Record<string, string>;
/**
* A list of request config keys that are not allowed to be customized by default.
*/
export declare const defaultDisallowedKeys: string[];
/**
* Merge options from a given {@link OriginOptions}. When reaching conflicts, values with higher priorities are chosen.
* @param headersOrParams - Given options with origin information.
* @returns The resulting merged options.
* @internal
*/
export declare function mergeOptionsWithPriority(headersOrParams?: OriginOptionsInternal): Record<string, string> | undefined;
/**
* @internal
* All origins ordered from low to high priority.
*/
export declare const origins: string[];