cast. framework. NetworkRequestInfo
class static
HTTP(s) 要求資訊。
建構函式
NetworkRequestInfo
new NetworkRequestInfo()
屬性
內容
可為空值的 Uint8Array
要求的內容。這可用於修改授權要求主體。
標題
物件
物件,內含要在標頭中傳送的屬性。
shakaRequestContext
可為空值的物件
定義要求的相關資料,直接以 https://shaka-player-demo.appspot.com/docs/api/shaka.extern.html#.RequestContext 為準。
shakaRequestInfo
可為空值的物件
直接根據下列網址提供的資訊,瞭解 Shaka 專屬的要求資訊: https://shaka-player-demo.appspot.com/docs/api/shaka.extern.html#.Request。
timeoutInterval
可為空值的數字
網路要求逾時時間 (以毫秒為單位)。
網址
可為空值的字串
要求的網址。
withCredentials
布林值
如果設為 true,表示應使用 Cookie 或授權標頭等憑證,發出 CORS Access-Control 要求。