@microsoft/kiota-http-fetchlibrary
Version:
Kiota request adapter implementation with fetch
22 lines • 696 B
JavaScript
/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
/**
* Middleware
* Class for FetchHandler
*/
export class CustomFetchHandler {
constructor(customFetch) {
this.customFetch = customFetch;
}
/**
* @inheritdoc
*/
async execute(url, requestInit) {
return await this.customFetch(url, requestInit);
}
}
//# sourceMappingURL=customFetchHandler.js.map