JikanKt / moe.ganen.jikankt.connection / RestClient

RestClient

class RestClient : JikanClient

Class that handle request.

Parameters

isDebug - : a boolean that indicate if you run it on debug or not. If yes, it'll throw exception if something happen.

url - : Custom URL, will use default (Jikan URL) if null or empty.

Constructors

<init>

Class that handle request.

RestClient(isDebug: Boolean = false, url: String? = null)

Functions

request

suspend fun request(endPoint: String, data: JsonObject? = null): JsonElement

Companion Object Properties

BASE_URL

const val BASE_URL: String