khttp
khttp copied to clipboard
Kotlin HTTP requests library. Similar to Python requests.
- declared receiver builder function - declared a builder data class represents of arguments
When running with java 9 you get the following warning: ``` WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by khttp.requests.GenericRequest (file:/C:/Users/Torben/.m2/repository/khttp/khttp/0.1.0/khttp-0.1.0.jar) to field java.net.URL.host WARNING:...
I have a problem when adding khttp dependency via Maven (pom.xml) to a simple project in Kotlin. I create a console application (Ubuntu 18.04 - IntelliJ IDEA Ultimate 2003 -...
Allow `FileLike` to be told its `Content-Type`
https://github.com/ascclemens/khttp/blob/39f76b41869ce9ffe6a5daa50ebfbe1ff533f36c/src/main/kotlin/khttp/requests/GenericRequest.kt#L208 This decode call reverts the previous encode operation from `Parameters`'s `toString` method. Why? Also, this is problematic because requests are being made un-encoded, i.e., params in the URL have...
I'm really liking `khttp`. I was wondering how I can write tests for functions that use `khttp`? Or should I really be using a library that hijacks `khttp` calls (as...
It looks like default `_connection` in `GenericResponse` [here](https://github.com/ascclemens/khttp/blob/master/src/main/kotlin/khttp/KHttp.kt#L62) is initialized with `GET` method, even when underlying `GenericRequest` is configured correctly with `HEAD` method. This, coupled with the default `Accept-Encoding` header,...
It seems like it is impossible to post any sort of XML content via `khttp.post`. On doing the following - ``` val response = post( url = soapEndpoint, headers =...
Hi, Glad to see this library is maintained again, it looks very cool! I'm opening this issue to let you know about a major Android incompatibility starting Pie, you can...