PlatformQQGuildApi

expect abstract class PlatformQQGuildApi<out R>(source)

用于多平台实现的最小目标。

在JVM平台和JS平台中分别提供对应的 blocking/async 兼容函数。 但是不应追加新的抽象函数。

仅内部平台实现用

See also

Inheritors

actual abstract class PlatformQQGuildApi<out R>(source)

用于多平台实现的最小目标。

在JVM平台和JS平台中分别提供对应的 blocking/async 兼容函数。 但是不应追加新的抽象函数。

actual abstract class PlatformQQGuildApi<out R>(source)

用于多平台实现的最小目标。

提供兼容Java的blocking/async函数

actual abstract class PlatformQQGuildApi<out R>(source)

用于多平台实现的最小目标。

Constructors

Link copied to clipboard
expect constructor()
actual constructor()
actual constructor()
actual constructor()

Types

Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion
actual object Companion

Functions

Link copied to clipboard
expect abstract suspend fun doRequest(client: HttpClient = QQGuildApi.DefaultHttpClient, server: Url, token: String, decoder: StringFormat = QQGuildApi.DefaultJsonDecoder): R

使用此api发起一次请求,并得到预期中的结果。

actual abstract suspend fun doRequest(client: HttpClient, server: Url, token: String, decoder: StringFormat): R

使用此api发起一次请求,并得到预期中的结果。

actual abstract suspend fun doRequest(client: HttpClient, server: Url, token: String, decoder: StringFormat): R

使用此api发起一次请求,并得到预期中的结果。 *

actual abstract suspend fun doRequest(client: HttpClient, server: Url, token: String, decoder: StringFormat): R

使用此api发起一次请求,并得到预期中的结果。如果返回了代表错误的响应值

Link copied to clipboard
fun doRequestAsync(client: HttpClient, server: Url, token: String, decoder: StringFormat): Promise<R>

使用此api发起一次请求,并得到预期中的结果。

fun doRequestAsync(client: HttpClient = QQGuildApi.DefaultHttpClient, server: Url, token: String, decoder: StringFormat = Json): CompletableFuture<out R>

使用此api发起一次请求,并得到预期中的结果。

Link copied to clipboard
fun doRequestBlocking(client: HttpClient = QQGuildApi.DefaultHttpClient, server: Url, token: String, decoder: StringFormat = Json): R

使用此api发起一次请求,并得到预期中的结果。

Link copied to clipboard
expect abstract suspend fun doRequestRaw(client: HttpClient = QQGuildApi.DefaultHttpClient, server: Url, token: String): String

使用此api发起一次请求,并得到响应结果的字符串。

actual abstract suspend fun doRequestRaw(client: HttpClient, server: Url, token: String): String

使用此api发起一次请求,并得到预期中的结果。

actual abstract suspend fun doRequestRaw(client: HttpClient, server: Url, token: String): String

使用此api发起一次请求,并得到预期中的结果。 *

actual abstract suspend fun doRequestRaw(client: HttpClient, server: Url, token: String): String

使用此api发起一次请求,并得到响应结果的字符串。

Link copied to clipboard
fun doRequestRawAsync(client: HttpClient, server: Url, token: String): Promise<String>

使用此api发起一次请求,并得到预期中的结果。

fun doRequestRawAsync(client: HttpClient = QQGuildApi.DefaultHttpClient, server: Url, token: String): CompletableFuture<out String>

使用此api发起一次请求,并得到预期中的结果。

Link copied to clipboard
fun doRequestRawBlocking(client: HttpClient = QQGuildApi.DefaultHttpClient, server: Url, token: String): String

使用此api发起一次请求,并得到预期中的结果。