Skip to content

putraxor/khttp-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

khttp

Travis CI Codecov VersionEye License Gratipay Documentation status

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

Dependency

Use JitPack to build khttp. The goal is to get khttp into Maven Central at some point, but it's not quite mature enough yet!

About

Kotlin HTTP requests library. Similar to Python requests.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages