HTTPUtils

object HTTPUtils

Functions

Link copied to clipboard
fun URI.get(): String

Sends a GET request to the given URI and returns the response as a String.

Link copied to clipboard
fun URI.post(body: String): String

Sends a POST request to the given URI with the specified body and returns the response as a String.