getCharset

abstract fun getCharset(): HttpCharset?

获取响应体解码时使用的字符集。 通常从 Content-Type 头部的 charset 参数中提取。

Return

一个 HttpCharset 对象,如果无法确定字符集则返回 null