doRequestRaw
expect abstract suspend fun doRequestRaw(client: HttpClient = QQGuildApi.DefaultHttpClient, server: Url, token: String): String(source)
使用此api发起一次请求,并得到响应结果的字符串。
Parameters
client
用于本次http请求的client。默认使用 QQGuildApi.DefaultHttpClient。
server
请求目标服务器。See also: QQGuild.URL、QQGuild.SANDBOX_URL。
token
用于本次请求鉴权的token。
See also
Throws
see HttpClient.request, 可能会抛出任何ktor请求过程中的异常。
请求过程中出现了错误(http状态码 !in 200 .. 300)
actual abstract suspend fun doRequestRaw(client: HttpClient, server: Url, token: String): String(source)
使用此api发起一次请求,并得到预期中的结果。
See also
Throws
see HttpClient.request, 可能会抛出任何ktor请求过程中的异常。
请求过程中出现了错误。
actual abstract suspend fun doRequestRaw(client: HttpClient, server: Url, token: String): String(source)
使用此api发起一次请求,并得到预期中的结果。 *
See also
Throws
see HttpClient.request, 可能会抛出任何ktor请求过程中的异常。
请求过程中出现了错误。
actual abstract suspend fun doRequestRaw(client: HttpClient, server: Url, token: String): String(source)
使用此api发起一次请求,并得到响应结果的字符串。
See also
Throws
see HttpClient.request, 可能会抛出任何ktor请求过程中的异常。
请求过程中出现了错误(http状态码 !in 200 .. 300)