All Projects → xkcoding → simple-http

xkcoding / simple-http

Licence: LGPL-3.0 license
抽取一个简单 HTTP 的通用接口,底层实现根据具体引入依赖指定。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to simple-http

FastHttpClient
封装OkHttp3,对外提供了POST请求、GET请求、上传文件、下载文件、https请求、cookie管理等功能
Stars: ✭ 60 (+57.89%)
Mutual labels:  httpclient, okhttp3
AndroidStarterAlt
A sample View-based Android app using the MVP architecture. It uses Mosby, Dagger2, RxJava, retrofit, LoganSquare, requery, EventBus, Conductor.
Stars: ✭ 27 (-28.95%)
Mutual labels:  okhttp3
Heimdall
An enhanced HTTP client for Go
Stars: ✭ 2,132 (+5510.53%)
Mutual labels:  httpclient
Angular11 App
Angular 11 ,Bootstrap 5, Node.js, Express.js, CRUD REST API, PWA, SSR, SEO, Angular Universal, Lazy Loading, PostgreSQL, MYSQL
Stars: ✭ 233 (+513.16%)
Mutual labels:  httpclient
Tiny.restclient
Simpliest Fluent REST client for .NET
Stars: ✭ 158 (+315.79%)
Mutual labels:  httpclient
rawhttp
Raw HTTP client in Go for complete request control and customization.
Stars: ✭ 100 (+163.16%)
Mutual labels:  httpclient
Funiture
慕课网课程推荐 Java并发编程与高并发解决方案:http://coding.imooc.com/class/195.html Java开发企业级权限管理系统:http://coding.imooc.com/class/149.html github: https://github.com/kanwangzjm/funiture, spring项目,权限管理、系统监控、定时任务动态调整、qps限制、sql监控(邮件)、验证码服务、短链接服务、动态配置等
Stars: ✭ 1,786 (+4600%)
Mutual labels:  httpclient
tinyPornManager
Made for pornhub. Fork from tinyMediaManager v3
Stars: ✭ 57 (+50%)
Mutual labels:  okhttp3
esa-httpclient
An asynchronous event-driven HTTP client based on netty.
Stars: ✭ 82 (+115.79%)
Mutual labels:  httpclient
Httpclient Android
HttpClient repackaged for Android
Stars: ✭ 211 (+455.26%)
Mutual labels:  httpclient
Yurunhttp
YurunHttp 是开源的 PHP HTTP 客户端,支持链式操作,简单易用。完美支持Curl、Swoole 协程。QQ群:17916227
Stars: ✭ 197 (+418.42%)
Mutual labels:  httpclient
Httpclientutil
HttpClient工具类,简单轻松的实现get,post,put和delete请求
Stars: ✭ 165 (+334.21%)
Mutual labels:  httpclient
HttpClientMock
Library for mocking Apache HttpClient.
Stars: ✭ 41 (+7.89%)
Mutual labels:  httpclient
Curlsharp
CurlSharp - .Net binding and object-oriented wrapper for libcurl.
Stars: ✭ 153 (+302.63%)
Mutual labels:  httpclient
smart-api-framework
smart api automation framework to support web service api automaton test based on testng and httpclient
Stars: ✭ 15 (-60.53%)
Mutual labels:  httpclient
Http Api Invoker
一个让http接口调用跟调用本地方法一样自然优雅的项目
Stars: ✭ 147 (+286.84%)
Mutual labels:  httpclient
Httplug
HTTPlug, the HTTP client abstraction for PHP
Stars: ✭ 2,295 (+5939.47%)
Mutual labels:  httpclient
RxJavaKotlinSample
RxJava2 and Kotlin sample project
Stars: ✭ 13 (-65.79%)
Mutual labels:  okhttp3
OkhttpCacheInterceptor
The OkHttpCacheInterceptor 一个OkHttp的网络缓存拦截器,可自定义场景对请求的数据进行缓存
Stars: ✭ 32 (-15.79%)
Mutual labels:  okhttp3
angular-httpclient
Angular 15 Example HttpClient
Stars: ✭ 21 (-44.74%)
Mutual labels:  httpclient

Simple-HTTP

Travis-CI MAVEN author JDK LICENSE

简介

抽取一个简单 HTTP 的通用接口,底层实现根据具体引入依赖指定。

<dependency>
  <groupId>com.xkcoding.http</groupId>
  <artifactId>simple-http</artifactId>
  <version>1.0.5</version>
</dependency>

特点

  • 默认会按照下面的优先级自行寻找底层实现,java 11 HttpClient -> OkHttp3 -> apache HttpClient -> hutool-http
  • 也可以自行实现 com.xkcoding.http.support.Http 接口,通过 HttpUtil.setHttp(new MyHttpImpl()) 设置进来
  • 可以配置超时时间及代理
HttpUtil.setConfig(HttpConfig.builder()
			.timeout(Constants.DEFAULT_TIMEOUT)
			.proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 10080)))
			.build());
SimpleHttpResponse response = HttpUtil.get("https://www.google.com");
System.out.println("code = " + response.getCode());
System.out.println("body = " + response.getBody());

TODO

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].