Cronet을 사용하여 네트워크 작업 수행
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Cronet은 Android 앱에서 라이브러리로 사용할 수 있는 Chromium 네트워크 스택입니다. Cronet은 지연 시간을 줄이고 앱이 작동해야 하는 네트워크 요청의 처리량을 늘리는 여러 기술을 활용합니다.
Cronet 라이브러리는 YouTube, Google 앱, Google 포토, 지도 - 내비게이션 및 대중교통 등 수백만 명의 사용자가 매일 사용하는 앱의 요청을 처리합니다.
기능
- 프로토콜 지원
- Cronet은 기본적으로 HTTP, HTTP/2, QUIC를 통한 HTTP/3 프로토콜을 지원합니다.
- 요청 우선순위
- 이 라이브러리를 사용하면 요청에 우선순위 태그를 설정할 수 있습니다. 서버는 우선순위 태그를 사용하여 요청을 처리할 순서를 결정할 수 있습니다.
- 리소스 캐싱
- Cronet은 인메모리 또는 디스크 캐시를 사용하여 네트워크 요청에서 검색된 리소스를 저장할 수 있습니다. 후속 요청은 캐시에서 자동으로 제공됩니다.
- 비동기식 요청
- Cronet 라이브러리를 사용하여 실행된 네트워크 요청은 기본적으로 비동기입니다.
요청이 다시 돌아오기를 기다리는 동안에는 작업자 스레드가 차단되지 않습니다.
- 데이터 압축
- Cronet은 Brotli 압축 데이터 형식을 사용한 데이터 압축을 지원합니다.
Android용 앱에서 Cronet 라이브러리를 사용하는 방법을 알아보려면 간단한 요청 보내기를 참고하세요. GitHub에서 Cronet 샘플을 둘러볼 수도 있습니다.
Chromium Issue Tracker를 사용하여 Cronet 라이브러리에 관한 의견을 보낼 수 있습니다. 문제가 이미 보고되지 않도록 Issue Tracker에서 버그 목록을 확인합니다. 문제가 보고되지 않았으면 요약 줄에 Cronet이라는 단어를 사용하여 버그를 신고합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 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."]]