@microsoft/kiota-abstractions
Version:
Core abstractions for kiota generated libraries in TypeScript and JavaScript
17 lines • 1.24 kB
TypeScript
/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
import type { ErrorMappings } from "./requestAdapter.js";
import type { ResponseHandler } from "./responseHandler.js";
/** Default response handler to access the native response object. */
export declare class NativeResponseHandler implements ResponseHandler {
/** Native response object as returned by the core service */
value?: unknown;
/** The error mappings for the response to use when deserializing failed responses bodies. Where an error code like 401 applies specifically to that status code, a class code like 4XX applies to all status codes within the range if an the specific error code is not present. */
errorMappings: ErrorMappings | undefined;
handleResponse<NativeResponseType, ModelType>(response: NativeResponseType, errorMappings: ErrorMappings | undefined): Promise<ModelType | undefined>;
}
//# sourceMappingURL=nativeResponseHandler.d.ts.map