Companion

Properties

Link copied to clipboard
private val UTF8: Charset

Functions

Link copied to clipboard
private fun getCharset(contentType: MediaType?): Charset

Get charset.

Link copied to clipboard

This method is only for compatibility with the way Okhttp3Interceptor was created before version 1.3.5.

Link copied to clipboard
private fun isEventStream(mediaType: MediaType?): Boolean
Link copied to clipboard
private fun isPlaintext(mediaType: MediaType?): Boolean

Returns true if the body in question probably contains human readable text. Uses a small sample of code points to detect unicode control characters commonly used in binary file signatures.