UNPKG

@microsoft/kiota-bundle

Version:

Kiota Bundle package providing default implementations for client setup for kiota generated libraries in TypeScript and JavaScript

24 lines 1.52 kB
/** * ------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. * See License in the project root for license information. * ------------------------------------------------------------------------------------------- */ import { AuthenticationProvider, ParseNodeFactory, SerializationWriterFactory } from "@microsoft/kiota-abstractions"; import { FetchRequestAdapter, HttpClient, type ObservabilityOptions } from "@microsoft/kiota-http-fetchlibrary"; /** * Default request adapter for graph clients. Bootstraps serialization and other aspects. */ export declare class DefaultRequestAdapter extends FetchRequestAdapter { /** * Instantiates a new request adapter. * @param authenticationProvider the authentication provider to use. * @param parseNodeFactory the parse node factory to deserialize responses. * @param serializationWriterFactory the serialization writer factory to use to serialize request bodies. * @param httpClient the http client to use to execute requests. * @param observabilityOptions the observability options to use. */ constructor(authenticationProvider: AuthenticationProvider, parseNodeFactory?: ParseNodeFactory, serializationWriterFactory?: SerializationWriterFactory, httpClient?: HttpClient, observabilityOptions?: ObservabilityOptions); private setupDefaults; } //# sourceMappingURL=defaultRequestAdapter.d.ts.map