requestRaw

suspend fun OneBotApi<*>.requestRaw(client: HttpClient, host: Url, accessToken: String? = null, actionSuffixes: Collection<String>? = null, charset: Charset = Charsets.UTF_8): String(source)
suspend fun OneBotApi<*>.requestRaw(client: HttpClient, host: String, accessToken: String? = null, actionSuffixes: Collection<String>? = null, charset: Charset = Charsets.UTF_8): String(source)

this 发起一次请求,并得到响应体的字符串内容。

更多描述参考 OneBotApi.request.

See also

Throws

如果响应状态码不是 2xx (参考 HttpStatusCode.isSuccess)