Share via


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