Cronet kullanarak ağ işlemleri gerçekleştirme
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Cronet, Android uygulamalarında kitaplık olarak kullanıma sunulan Chromium ağ yığınıdır. Cronet, gecikmeyi azaltan ve uygulamanızın çalışması için gereken ağ isteklerinin işleme hızını artıran birden fazla teknolojiden yararlanır.
Cronet Kitaplığı, milyonlarca kişinin kullandığı YouTube, Google Uygulaması, Google Fotoğraflar ve Haritalar - Navigasyon ve Toplu Taşıma gibi uygulama isteklerini yönetir.
Özellikler
- Protokol desteği
- Cronet, QUIC protokolleri üzerinden HTTP, HTTP/2 ve HTTP/3'ü yerel olarak destekler.
- Önceliklendirme iste
- Kitaplık, istekler için öncelik etiketi ayarlamanıza olanak tanır. Sunucu, isteklerin hangi sırayla işleneceğini belirlemek için öncelik etiketini kullanabilir.
- Kaynak önbelleğe alma
- Cronet, ağ isteklerinde alınan kaynakları depolamak için bellek içi veya disk önbelleği kullanabilir. Sonraki istekler önbellekten otomatik olarak sunulur.
- Eşzamansız istekler
- Cronet Kitaplığı kullanılarak gönderilen ağ istekleri varsayılan olarak eşzamansızdır.
İsteğin geri gelmesi beklenirken çalışan ileti dizileriniz engellenmez.
- Veri sıkıştırma
- Cronet, Brotli Sıkıştırılmış Veri Biçimi'ni kullanarak veri sıkıştırmayı destekler.
Android'deki uygulamanızda Cronet Kitaplığı'nı nasıl kullanacağınızı öğrenmek için Basit istek gönderme bölümüne göz atın. GitHub'da Cronet Örneği'ne de göz atabilirsiniz.
Chromium Sorun İzleyici'yi kullanarak Cronet Kitaplığı hakkında geri bildirim gönderebilirsiniz. Sorununuzun önceden bildirilmediğinden emin olmak için sorun izleyicideki hata listesini kontrol edin. Sorununuz bildirilmediyse özet satırında Cronet kelimesini içeren bir hata bildiriminde bulunun.
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-26 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."]]