Skip to content
/ khttp Public
forked from putraxor/khttp-1

Kotlin HTTP requests library. Repo mirror just for publishing on Maven Central.

License

Notifications You must be signed in to change notification settings

DanySK/khttp

 
 

Repository files navigation

khttp

khttp is a simple library for HTTP requests in Kotlin. It functions similarly to Python's requests module.

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)
}

Use

This fork is meant to provide a way to use khttp when using The Central Repository. Nothing more. Use the following artifact

About

Kotlin HTTP requests library. Repo mirror just for publishing on Maven Central.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 99.7%
  • JavaScript 0.3%