共用方式為


OperationRequestOptions interface

建立和傳送此作業之 HTTP 要求時所使用的選項。

屬性

allowInsecureConnection

如果要求是透過 HTTP 而不是 HTTPS 傳送,則設定為 true

customHeaders

使用者定義自定義要求標頭,將在傳送要求之前套用。

onDownloadProgress

下載進度引發的回呼。

onUploadProgress

上傳進度時引發的回呼。

shouldDeserialize

是否應還原串行化 HttpOperationResponse。 如果這是未定義的,則應該還原串行化 HttpOperationResponse。

timeout

要求在自動終止之前可能需要的毫秒數。

屬性詳細資料

allowInsecureConnection

如果要求是透過 HTTP 而不是 HTTPS 傳送,則設定為 true

allowInsecureConnection?: boolean

屬性值

boolean

customHeaders

使用者定義自定義要求標頭,將在傳送要求之前套用。

customHeaders?: {[key: string]: string}

屬性值

{[key: string]: string}

onDownloadProgress

下載進度引發的回呼。

onDownloadProgress?: (progress: TransferProgressEvent) => void

屬性值

(progress: TransferProgressEvent) => void

onUploadProgress

上傳進度時引發的回呼。

onUploadProgress?: (progress: TransferProgressEvent) => void

屬性值

(progress: TransferProgressEvent) => void

shouldDeserialize

是否應還原串行化 HttpOperationResponse。 如果這是未定義的,則應該還原串行化 HttpOperationResponse。

shouldDeserialize?: boolean | (response: PipelineResponse) => boolean

屬性值

boolean | (response: PipelineResponse) => boolean

timeout

要求在自動終止之前可能需要的毫秒數。

timeout?: number

屬性值

number