適用於 JavaScript 的 Azure Core HTTP 相容性連結庫
此連結庫提供類別和介面,供 Azure 用戶端連結庫使用,這些連結庫想要從使用 @azure/core-http 移至 @azure/core-client & @azure/core-rest-pipeline ,而不會在其公用 API 介面中造成重大變更。
使用方式
ExtendedCommonClientOptions
使用 @azure/core-http
連結庫時, options
自定義客戶端的參數看起來會像這樣:
export interface SearchClientOptions extends PipelineOptions {
apiVersion?: string;
}
@azure/core-client
使用 & @azure/core-rest-pipeline
連結庫時,options
自訂客戶端的參數看起來會像這樣:
export interface SearchClientOptions extends CommonClientOptions {
apiVersion?: string;
}
使用 Core HTTP 相容性連結庫時, options
自訂客戶端的參數看起來會像這樣:
export interface SearchClientOptions extends ExtendedCommonClientOptions {
apiVersion?: string;
}
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應