Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for charsetOrUtf8 (0.12 sec)

  1. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

    import java.util.TreeSet
    import java.util.concurrent.TimeUnit
    import okhttp3.Headers
    import okhttp3.HttpUrl
    import okhttp3.Interceptor
    import okhttp3.OkHttpClient
    import okhttp3.Response
    import okhttp3.internal.charsetOrUtf8
    import okhttp3.internal.http.promisesBody
    import okhttp3.internal.platform.Platform
    import okhttp3.logging.internal.isProbablyUtf8
    import okio.Buffer
    import okio.GzipSource
    
    /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

    package okhttp3
    
    import java.io.Closeable
    import java.io.IOException
    import java.io.InputStream
    import java.io.InputStreamReader
    import java.io.Reader
    import java.nio.charset.Charset
    import okhttp3.internal.charsetOrUtf8
    import okhttp3.internal.chooseCharset
    import okhttp3.internal.commonAsResponseBody
    import okhttp3.internal.commonByteString
    import okhttp3.internal.commonBytes
    import okhttp3.internal.commonClose
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/internal.kt

          finalContentType = "$this; charset=utf-8".toMediaTypeOrNull()
        } else {
          charset = resolvedCharset
        }
      }
      return charset to finalContentType
    }
    
    internal fun MediaType?.charsetOrUtf8(): Charset {
      return this?.charset() ?: Charsets.UTF_8
    }
    
    internal val Response.connection: RealConnection
      get() = this.exchange!!.connection
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top