Cronet का इस्तेमाल करके नेटवर्क ऑपरेशन करना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Cronet, Chromium का नेटवर्क स्टैक है. इसे Android ऐप्लिकेशन के लिए लाइब्रेरी के तौर पर उपलब्ध कराया जाता है. Cronet, कई टेक्नोलॉजी का इस्तेमाल करता है. इससे आपके ऐप्लिकेशन को काम करने के लिए ज़रूरी नेटवर्क अनुरोधों की लेटेन्सी कम होती है और थ्रूपुट बढ़ता है.
Cronet Library, हर दिन लाखों लोगों के इस्तेमाल किए जाने वाले ऐप्लिकेशन के अनुरोधों को मैनेज करती है. जैसे, YouTube, Google ऐप्लिकेशन, Google Photos, और Maps - नेविगेशन और ट्रांज़िट.
सुविधाएं
- प्रोटोकॉल से जुड़ी सहायता
- Cronet, HTTP, HTTP/2, और QUIC पर HTTP/3 प्रोटोकॉल के साथ काम करता है.
- अनुरोध को प्राथमिकता देना
- इस लाइब्रेरी की मदद से, अनुरोधों के लिए प्राथमिकता वाला टैग सेट किया जा सकता है. सर्वर, प्राथमिकता वाले टैग का इस्तेमाल करके यह तय कर सकता है कि अनुरोधों को किस क्रम में हैंडल किया जाए.
- संसाधन को कैश मेमोरी में सेव करना
- Cronet, नेटवर्क अनुरोधों में वापस लाए गए संसाधनों को सेव करने के लिए, मेमोरी या डिस्क कैश मेमोरी का इस्तेमाल कर सकता है. इसके बाद के अनुरोधों को कैश मेमोरी से अपने-आप पूरा किया जाता है.
- एसिंक्रोनस अनुरोध
- Cronet लाइब्रेरी का इस्तेमाल करके किए गए नेटवर्क अनुरोध, डिफ़ॉल्ट रूप से एसिंक्रोनस होते हैं.
अनुरोध के वापस आने का इंतज़ार करते समय, आपकी वर्कर थ्रेड ब्लॉक नहीं होती हैं.
- डेटा कंप्रेस करना
- Cronet, Brotli Compressed Data Format का इस्तेमाल करके डेटा कंप्रेस करने की सुविधा देता है.
Android के लिए अपने ऐप्लिकेशन में Cronet Library इस्तेमाल करने का तरीका जानने के लिए, सामान्य अनुरोध भेजना लेख पढ़ें. GitHub पर Cronet सैंपल भी देखा जा सकता है.
Chromium Issue Tracker का इस्तेमाल करके, Cronet Library के बारे में सुझाव/राय दी जा सकती है या शिकायत की जा सकती है. समस्या को ट्रैक करने वाले टूल में मौजूद गड़बड़ियों की सूची देखें. इससे आपको यह पक्का करने में मदद मिलेगी कि आपकी समस्या की शिकायत पहले से नहीं की गई है. अगर आपकी समस्या की रिपोर्ट नहीं की गई है, तो गड़बड़ी की रिपोर्ट करें. इसमें खास जानकारी वाली लाइन में Cronet शब्द का इस्तेमाल करें.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# Perform network operations using Cronet\n\nCronet is the Chromium network stack made available to Android apps as a\nlibrary. Cronet takes advantage of multiple technologies that reduce the latency\nand increase the throughput of the network requests that your app needs to work.\n\nThe Cronet Library handles the requests of apps used by millions of people on a\ndaily basis, such as\n[YouTube](https://play.google.com/store/apps/details?id=com.google.android.youtube),\n[Google App](https://play.google.com/store/apps/details?id=com.google.android.googlequicksearchbox),\n[Google Photos](https://play.google.com/store/apps/details?id=com.google.android.apps.photos),\nand [Maps - Navigation \\& Transit](https://play.google.com/store/apps/details?id=com.google.android.apps.maps).\n\nFeatures\n--------\n\n**Protocol support**\n: Cronet natively supports the\n [HTTP](https://tools.ietf.org/html/rfc2616),\n [HTTP/2](https://tools.ietf.org/html/rfc7540), and\n [HTTP/3 over QUIC](https://www.chromium.org/quic) protocols.\n\n**Request prioritization**\n: The library allows you to set a priority tag for the requests. The server can\n use the priority tag to determine the order in which to handle the requests.\n\n**Resource caching**\n: Cronet can use an in-memory or disk cache to store resources retrieved in\n network requests. Subsequent requests are served from the cache automatically.\n\n**Asynchronous requests**\n: Network requests issued using the Cronet Library are asynchronous by default.\n Your worker threads aren't blocked while waiting for the request to come back.\n\n**Data compression**\n: Cronet supports data compression using the\n [Brotli Compressed Data Format](https://tools.ietf.org/html/rfc7932).\n\nTo learn how to use the Cronet Library in your app for Android, see [Send a\nsimple request](/develop/connectivity/cronet/start). You can also\nbrowse the\n[Cronet Sample](https://github.com/GoogleChromeLabs/cronet-sample)\non GitHub.\n\nYou can send feedback about the Cronet Library using the [Chromium Issue\nTracker](https://crbug.com). Check the list of bugs in the issue tracker to make\nsure that your issue hasn't already been reported. If your issue hasn't been\nreported, file a bug with the word *Cronet* in the summary line."]]