# http **Repository Path**: vimeo/http ## Basic Information - **Project Name**: http - **Description**: A network request component based on okhttp. - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-06-10 - **Last Updated**: 2024-12-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: Http, Library ## README # OKClient [![](https://jitpack.io/v/com.sunzn/http.svg)](https://jitpack.io/#com.sunzn/http) [![](https://img.shields.io/badge/License-Apache%202.0-orange.svg)](http://www.apache.org/licenses/LICENSE-2.0.html) ### Gradle ```groovy dependencies { implementation 'com.sunzn.http:http:4.10.0' } ``` ### Notice 根据 OKHTTP 官方的 [发布说明](https://github.com/square/okhttp/blob/master/CHANGELOG.md#version-3130) ,从 OKHTTP Version 3.13.0 起,需要在 `build.gradle` 中增加对 Java 8 的支持。为了更好的支持 OKHTTP 的新特性,OKClient 从 Version 1.1.7 开始,基于 OKHTTP Version 4.0.1 进行二次开发,如果你项目中引用的 OKClient 版本为 Version 1.1.7 或更高版本,也需要在项目的 `build.gradle` 中增加对 Java 8 的支持。 ``` android { compileOptions { targetCompatibility = "8" sourceCompatibility = "8" } } ```