@microsoft/kiota-http-fetchlibrary
Version:
Kiota request adapter implementation with fetch
29 lines • 1.27 kB
JavaScript
/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
import { libraryVersion } from "./version.js";
export const UserAgentHandlerOptionsKey = "UserAgentHandlerOptionKey";
/**
* Represents the options for the UserAgentHandler.
*/
export class UserAgentHandlerOptions {
getKey() {
return UserAgentHandlerOptionsKey;
}
/**
*
* To create an instance of UserAgentHandlerOptions
* @param [options] - The options for the UserAgentHandler
* @example const options = new UserAgentHandlerOptions({ enable: false });
*/
constructor(options = {}) {
var _a, _b, _c;
this.enable = (_a = options.enable) !== null && _a !== void 0 ? _a : true;
this.productName = (_b = options.productName) !== null && _b !== void 0 ? _b : "kiota-typescript";
this.productVersion = (_c = options.productVersion) !== null && _c !== void 0 ? _c : libraryVersion;
}
}
//# sourceMappingURL=userAgentHandlerOptions.js.map