在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ascclemens/khttp开源软件地址(OpenSource Url):https://github.com/ascclemens/khttp开源编程语言(OpenSource Language):Kotlin 100.0%开源软件介绍(OpenSource Introduction):khttpkhttp is a simple library for HTTP requests in Kotlin. It functions similarly to Python's import khttp.get
fun main(args: Array<out String>) {
// Get our IP
println(get("http://httpbin.org/ip").jsonObject.getString("origin"))
// Get our IP in a simpler way
println(get("http://icanhazip.com").text)
} DependencyStableStable releases are hosted on JCenter. <repository>
<id>jcenter</id>
<url>https://jcenter.bintray.com/</url>
</repository>
<!-- ... -->
<dependency>
<groupId>khttp</groupId>
<artifactId>khttp</artifactId>
<version>1.0.0</version>
</dependency> DevelopmentDevelopment builds are currently available through JitPack. Snapshot builds may eventually be hosted on OJO, but are not currently available there. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论