محتوای درخواست. این ممکن است برای تغییر بدنه درخواست مجوز استفاده شود.
سرصفحه ها
هدف - شی
یک شی حاوی ویژگی هایی که می خواهید در هدر ارسال کنید.
TimeoutInterval
عدد پوچ
مهلت درخواست شبکه، در میلی ثانیه.
آدرس اینترنتی
رشته پوچ
URL درخواستی
با اعتبار
بولی
وقتی روی true تنظیم شود، این نشان میدهد که درخواستهای CORS Access-Control باید با استفاده از اعتبارنامههایی مانند کوکیها یا سرصفحههای مجوز انجام شوند.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003e\u003ccode\u003eNetworkRequestInfo\u003c/code\u003e provides details about HTTP(s) requests, including URL, headers, content, and timeout settings.\u003c/p\u003e\n"],["\u003cp\u003eIt enables modification of license request bodies and controls the use of credentials like cookies for CORS requests.\u003c/p\u003e\n"]]],["The `NetworkRequestInfo` class provides details about an HTTP(s) request. Key properties include `content` (request body, modifiable as a Uint8Array), `headers` (custom header object), `timeoutInterval` (request timeout in milliseconds), and `url` (the requested URL). Additionally, `withCredentials` determines if credentials like cookies or authorization headers should be used in CORS requests, with a boolean value. This helps to manage network information of a cast framework request.\n"],null,["# Class: NetworkRequestInfo\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).NetworkRequestInfo\n=====================================================================================\n\nclass static\n\nHTTP(s) Request information.\n\nConstructor\n-----------\n\n### NetworkRequestInfo\n\nnew\nNetworkRequestInfo()\n\nProperties\n----------\n\n### content\n\nnullable Uint8Array\n\nThe content of the request. This may be used to modify the license\nrequest body.\n\n### headers\n\nObject\n\nAn object containing properties that you would like to send in the\nheader.\n\n### timeoutInterval\n\nnullable number\n\nThe network request timeout, in milliseconds.\n\n### url\n\nnullable string\n\nThe requested URL.\n\n### withCredentials\n\nboolean\n\nWhen set to `true`, this indicates that CORS Access-Control\nrequests should be made using credentials such as cookies or\nauthorization headers."]]