在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:http-kit/http-kit开源软件地址:https://github.com/http-kit/http-kit开源编程语言:Java 71.2%开源软件介绍:HTTP KitA simple, high-performance event-driven HTTP client+server for ClojureCHANGELOG | API | current Break Version: [http-kit "2.6.0"] ; Published by contributors, see CHANGELOG for details (stable)
[http-kit "2.1.19"] ; Legacy, published by @shenfeng Project statushttp-kit's author (@shenfeng) unfortunately hasn't had much time to maintain http-kit recently. To help out I'll be doing basic issue triage, accepting minor/obvious PRs, etc. A big thank you to the current contributors for keeping the project going! Additional contributors welcome: please ping me if you'd be interested in lending a hand. See the (unmaintained, outdated) project website for original documentation, examples, benchmarks, etc. Features
Enabling client SNI support (DISABLED BY DEFAULT)To retain backwards-compatibility with JVMs < 8, http-kit client's SNI support is DISABLED by default.
This default may be changed in a future breaking release. In the meantime, manually enabling support is easy: (:require [org.httpkit.sni-client :as sni-client]) ; Needs Java >= 8, http-kit >= 2.4.0-alpha6
;; Change default client for your whole application:
(alter-var-root #'org.httpkit.client/*default-client* (fn [_] sni-client/default-client))
;; or temporarily change default client for a particular thread context:
(binding [org.httpkit.client/*default-client* sni-client/default-client]
<...>) See Hack locallyHacker friendly: zero dependencies, written from the ground-up with only ~3.5k lines of code (including java), clean and tidy. # Modify as you want, unit tests back you up:
lein test
# May be useful (more info), see `server_test.clj`:
./scripts/start_test_server
# Some numbers on how fast can http-kit's client can run:
lein test :benchmark Contact & ContributionPlease use the GitHub issues page for feature suggestions, bug reports, or general discussions. Current contributors are listed here. The project website is also on GitHub. Native Imagehttp-kit server and client are compatible with GraalVM's native-image compiler. To ensure the image can build, provide the following options to the native-image compiler: ReflectionIn your reflection-config.json {"name": "java.lang.reflect.AccessibleObject",
"methods" : [{"name":"canAccess"}]} Class initializationAs of version --initialize-at-run-time=org.httpkit.client.ClientSslEngineFactory\$SSLHolder LicenseCopyright © 2012-2022 @shenfeng and contributors. Distributed under the Apache License Version 2.0. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论