Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 431 for companion (0.17 sec)

  1. okhttp/src/test/java/okhttp3/HeadersRequestTest.kt

     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.TestUtil.headerEntries
    import okhttp3.internal.http2.Http2ExchangeCodec.Companion.http2HeadersList
    import okhttp3.internal.http2.Http2ExchangeCodec.Companion.readHttp2HeadersList
    import org.junit.jupiter.api.Test
    
    class HeadersRequestTest {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/api/mockwebserver.api

    }
    
    public final class okhttp3/mockwebserver/MockResponse$Companion {
    }
    
    public final class okhttp3/mockwebserver/MockWebServer : org/junit/rules/ExternalResource, java/io/Closeable {
    	public static final field Companion Lokhttp3/mockwebserver/MockWebServer$Companion;
    	public final fun -deprecated_bodyLimit (J)V
    	public final fun -deprecated_port ()I
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jul 22 12:28:51 GMT 2023
    - 10.2K bytes
    - Viewed (0)
  3. okhttp-dnsoverhttps/api/okhttp-dnsoverhttps.api

    public final class okhttp3/dnsoverhttps/DnsOverHttps : okhttp3/Dns {
    	public static final field Companion Lokhttp3/dnsoverhttps/DnsOverHttps$Companion;
    	public static final field MAX_RESPONSE_SIZE I
    	public final fun client ()Lokhttp3/OkHttpClient;
    	public final fun includeIPv6 ()Z
    	public fun lookup (Ljava/lang/String;)Ljava/util/List;
    	public final fun post ()Z
    	public final fun resolvePrivateAddresses ()Z
    	public final fun resolvePublicAddresses ()Z
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 27 15:23:43 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/PostStreaming.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.recipes.kt
    
    import java.io.IOException
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.RequestBody
    import okio.BufferedSink
    
    class PostStreaming {
      private val client = OkHttpClient()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  5. okhttp-tls/api/okhttp-tls.api

    }
    
    public final class okhttp3/tls/HeldCertificate {
    	public static final field Companion Lokhttp3/tls/HeldCertificate$Companion;
    	public final fun -deprecated_certificate ()Ljava/security/cert/X509Certificate;
    	public final fun -deprecated_keyPair ()Ljava/security/KeyPair;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Feb 26 19:17:33 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

    internal fun Long.commonClampToInt(): Int {
      return when {
        this > Int.MAX_VALUE -> Int.MAX_VALUE
        else -> toInt()
      }
    }
    
    internal fun CacheControl.Companion.commonForceNetwork() =
      CacheControl.Builder()
        .noCache()
        .build()
    
    internal fun CacheControl.Companion.commonForceCache() =
      CacheControl.Builder()
        .onlyIfCached()
        .maxStale(Int.MAX_VALUE.seconds)
        .build()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

             * Avoid shortening reference to enum companion used in enum entry initialization there is no guarantee that the companion object
             * was initialized in advance.
             * For example, When we shorten the following code:
             *     enum class C(val i: Int) {
             *         ONE(<expr>C.K</expr>)  // shorten C.K to K
             *         ;
             *         companion object {
             *             const val K = 1
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:51:33 GMT 2024
    - 69.5K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/PostFile.kt

     * limitations under the License.
     */
    package okhttp3.recipes.kt
    
    import java.io.File
    import java.io.IOException
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.RequestBody.Companion.asRequestBody
    
    class PostFile {
      private val client = OkHttpClient()
    
      fun run() {
        val file = File("README.md")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/kt/PostString.kt

     * limitations under the License.
     */
    package okhttp3.recipes.kt
    
    import java.io.IOException
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.RequestBody.Companion.toRequestBody
    
    class PostString {
      private val client = OkHttpClient()
    
      fun run() {
        val postBody =
          """
          |Releases
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  10. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

     * limitations under the License.
     */
    package okhttp3.sse.internal
    
    import java.io.IOException
    import okhttp3.internal.toLongOrDefault
    import okio.Buffer
    import okio.BufferedSource
    import okio.ByteString.Companion.encodeUtf8
    import okio.Options
    
    class ServerSentEventReader(
      private val source: BufferedSource,
      private val callback: Callback,
    ) {
      private var lastId: String? = null
    
      interface Callback {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
Back to top