n4auth/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts

21 lines
844 B
TypeScript
Raw Normal View History

2021-07-15 20:10:20 +00:00
import { INetworkModule, NetworkRequestOptions } from "./INetworkModule";
import { RequestThumbprint } from "./RequestThumbprint";
import { CacheManager } from "../cache/CacheManager";
export declare type NetworkResponse<T> = {
headers: Record<string, string>;
body: T;
status: number;
};
export declare class NetworkManager {
private networkClient;
private cacheManager;
constructor(networkClient: INetworkModule, cacheManager: CacheManager);
/**
* Wraps sendPostRequestAsync with necessary preflight and postflight logic
* @param thumbprint
* @param tokenEndpoint
* @param options
*/
sendPostRequest<T>(thumbprint: RequestThumbprint, tokenEndpoint: string, options: NetworkRequestOptions): Promise<NetworkResponse<T>>;
}
//# sourceMappingURL=NetworkManager.d.ts.map