http-client:基于Netty的Java高性能面向吞吐量的HTTP客户端库

上传者: 42133753 | 上传时间: 2022-11-17 13:34:29 | 文件大小: 170KB | 文件类型: ZIP
预警:此项目不再维护。 保持在线仅用于教育目的。 HTTP客户端 该项目是一个面向 Java 高性能和吞吐量的 HTTP 客户端库,支持 HTTP 1.1 流水线。 它主要针对服务器端使用而开发,其中速度和低资源使用是关键因素,但也可用于构建客户端应用程序。 建立在 Netty 之上,专为高并发场景而设计,其中多个线程可以使用同一个客户端实例,而无需担心外部或内部同步,它可以帮助您减少初始化和/或准备时间以及资源浪费。 在许多小的优化中,只要有可能就重用连接,这通过减少连接建立开销来大大减少总请求执行时间。 1.1 版快要准备好了 请务必检查。 除了一些类重命名之外,面向用户的 API 几乎保持不变——过渡应该是平滑的。 依赖关系 JDK 1.7 使用示例 同步模式 此示例包含执行请求的所有步骤,从创建到清理。 这是同步模式,这意味着调用线程将阻塞,直到请求完成。 // Crea

文件下载

资源详情

[{"title":"( 78 个子文件 170KB ) http-client:基于Netty的Java高性能面向吞吐量的HTTP客户端库","children":[{"title":"http-client-master","children":[{"title":".gitignore <span style='color:#111;'> 48B </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 3.99KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"integration-test","children":[{"title":"groovy","children":[{"title":"com","children":[{"title":"biasedbit","children":[{"title":"http","children":[{"title":"client","children":[{"title":"DefaultHttpClientTest.groovy <span style='color:#111;'> 7.98KB </span>","children":null,"spread":false}],"spread":true},{"title":"server","children":[{"title":"UploadMirrorHttpServer.java <span style='color:#111;'> 8.79KB </span>","children":null,"spread":false},{"title":"DummyHttpServer.java <span style='color:#111;'> 11.40KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"java","children":[{"title":"com","children":[{"title":"biasedbit","children":[{"title":"http","children":[{"title":"client","children":[{"title":"HttpClient.java <span style='color:#111;'> 4.64KB </span>","children":null,"spread":false},{"title":"EventProcessorStatsProvider.java <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"event","children":[{"title":"ClientEvent.java <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"ConnectionFailedEvent.java <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"ConnectionOpenEvent.java <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"EventType.java <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"RequestCompleteEvent.java <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"ConnectionClosedEvent.java <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"ExecuteRequestEvent.java <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false}],"spread":false},{"title":"CannotExecuteRequestException.java <span style='color:#111;'> 982B </span>","children":null,"spread":false},{"title":"connection","children":[{"title":"ConnectionFactory.java <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"DataSink.java <span style='color:#111;'> 898B </span>","children":null,"spread":false},{"title":"DefaultConnectionFactory.java <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":"ConnectionListener.java <span style='color:#111;'> 3.07KB </span>","children":null,"spread":false},{"title":"DefaultConnection.java <span style='color:#111;'> 19.68KB </span>","children":null,"spread":false},{"title":"PipeliningConnectionFactory.java <span style='color:#111;'> 2.27KB </span>","children":null,"spread":false},{"title":"Connection.java <span style='color:#111;'> 6.88KB </span>","children":null,"spread":false},{"title":"PipeliningConnection.java <span style='color:#111;'> 18.84KB </span>","children":null,"spread":false}],"spread":false},{"title":"DefaultHttpClientFactory.java <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"util","children":[{"title":"ConnectionPool.java <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"HostController.java <span style='color:#111;'> 6.52KB </span>","children":null,"spread":false},{"title":"RequestContext.java <span style='color:#111;'> 4.15KB </span>","children":null,"spread":false},{"title":"Utils.java <span style='color:#111;'> 925B </span>","children":null,"spread":false},{"title":"CleanupChannelGroup.java <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"NamedThreadFactory.java <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false}],"spread":false},{"title":"ssl","children":[{"title":"BogusSslContextFactory.java <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"SslContextFactory.java <span style='color:#111;'> 866B </span>","children":null,"spread":false},{"title":"DefaultSslContextFactory.java <span style='color:#111;'> 4.57KB </span>","children":null,"spread":false},{"title":"BogusKeyStore.java <span style='color:#111;'> 17.20KB </span>","children":null,"spread":false},{"title":"BogusTrustManagerFactory.java <span style='color:#111;'> 2.59KB </span>","children":null,"spread":false}],"spread":false},{"title":"timeout","children":[{"title":"BasicTimeoutController.java <span style='color:#111;'> 6.53KB </span>","children":null,"spread":false},{"title":"TimeoutController.java <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"HashedWheelTimeoutController.java <span style='color:#111;'> 4.33KB </span>","children":null,"spread":false}],"spread":false},{"title":"processor","children":[{"title":"ByteAccumulatorProcessor.java <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"ResponseProcessor.java <span style='color:#111;'> 4.64KB </span>","children":null,"spread":false},{"title":"BodyAsStringProcessor.java <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"DiscardProcessor.java <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"AbstractAccumulatorProcessor.java <span style='color:#111;'> 4.69KB </span>","children":null,"spread":false},{"title":"TypedDiscardProcessor.java <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false}],"spread":false},{"title":"future","children":[{"title":"DataSinkListener.java <span style='color:#111;'> 905B </span>","children":null,"spread":false},{"title":"RequestFutureListener.java <span style='color:#111;'> 890B </span>","children":null,"spread":false},{"title":"RequestFuture.java <span style='color:#111;'> 2.45KB </span>","children":null,"spread":false},{"title":"DefaultRequestFuture.java <span style='color:#111;'> 10.29KB </span>","children":null,"spread":false}],"spread":false},{"title":"DefaultHttpClient.java <span style='color:#111;'> 34.38KB </span>","children":null,"spread":false},{"title":"StatsGatheringHttpClient.java <span style='color:#111;'> 6.30KB </span>","children":null,"spread":false},{"title":"HttpClientFactory.java <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"groovy","children":[{"title":"com","children":[{"title":"biasedbit","children":[{"title":"http","children":[{"title":"client","children":[{"title":"connection","children":[{"title":"PipeliningConnectionFactorySpec.groovy <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"DefaultConnectionFactorySpec.groovy <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"PipeliningConnectionSpec.groovy <span style='color:#111;'> 656B </span>","children":null,"spread":false},{"title":"AbstractConnectionTest.groovy <span style='color:#111;'> 19.74KB </span>","children":null,"spread":false},{"title":"DefaultConnectionSpec.groovy <span style='color:#111;'> 8.54KB </span>","children":null,"spread":false}],"spread":true},{"title":"DefaultHttpClientSpec.groovy <span style='color:#111;'> 5.25KB </span>","children":null,"spread":false},{"title":"util","children":[{"title":"RequestContextSpec.groovy <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"CleanupChannelGroupSpec.groovy <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"NamedThreadFactorySpec.groovy <span style='color:#111;'> 618B </span>","children":null,"spread":false},{"title":"ConnectionPoolSpec.groovy <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"UtilsSpec.groovy <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"HostControllerSpec.groovy <span style='color:#111;'> 4.03KB </span>","children":null,"spread":false}],"spread":false},{"title":"timeout","children":[{"title":"HashedWheelTimeoutControllerSpec.groovy <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"BasicTimeoutControllerSpec.groovy <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false}],"spread":false},{"title":"processor","children":[{"title":"TypedDiscardProcessorSpec.groovy <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"BodyAsStringProcessorSpec.groovy <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"AbstractAccumulatorProcessorSpec.groovy <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false},{"title":"ByteAccumulatorProcessorSpec.groovy <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false}],"spread":false},{"title":"future","children":[{"title":"DefaultRequestFutureSpec.groovy <span style='color:#111;'> 13.28KB </span>","children":null,"spread":false}],"spread":false},{"title":"DefaultHttpClientFactorySpec.groovy <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"gradlew <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 5.60KB </span>","children":null,"spread":false},{"title":"gradlew.bat <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 230B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 49.37KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"CHANGES.md <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明