doRequest

open suspend fun doRequest(client: HttpClient, server: Url, token: String, decoder: StringFormat = Json): R

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

See also

Throws

see HttpClient.request, 可能会抛出任何ktor请求过程中的异常。

请求过程中出现了错误。