@azure/core-http-compat
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

Azure Core HTTP Compatibility library for JavaScript

This library provides classes and interfaces to be used by Azure client libraries that want to move from using @azure/core-http to @azure/core-client & @azure/core-rest-pipeline without causing breaking changes in their public API surface.

Usage

ExtendedCommonClientOptions

With @azure/core-http library, the options parameter to the custom client will look like:

export interface SearchClientOptions extends PipelineOptions {
  apiVersion?: string;
}

With the @azure/core-client & @azure/core-rest-pipeline libraries, the options parameter to the custom client will look like:

export interface SearchClientOptions extends CommonClientOptions {
  apiVersion?: string;
}

With the Core HTTP Compatibility library, the options parameter to the custom client will look like:

export interface SearchClientOptions extends ExtendedCommonClientOptions {
  apiVersion?: string;
}

Readme

Keywords

Package Sidebar

Install

npm i @azure/core-http-compat

Weekly Downloads

1,342,367

Version

2.1.1

License

MIT

Unpacked Size

337 kB

Total Files

153

Last publish

Collaborators

  • azure-sdk