Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for type (0.15 sec)

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

           *
           * Example:
           * ```
           * --> POST /greeting http/1.1
           * Host: example.com
           * Content-Type: plain/text
           * Content-Length: 3
           * --> END POST
           *
           * <-- 200 OK (22ms)
           * Content-Type: plain/text
           * Content-Length: 6
           * <-- END HTTP
           * ```
           */
          HEADERS,
    
          /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  2. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        assertThat(buffer.readByteString()).isEqualTo("A20743054A6F6E6573".decodeHex())
      }
    
      @Test fun `decode implicit tagged implicit prefixed type`() {
        // Type1 ::= VisibleString
        // Type2 ::= [APPLICATION 3] IMPLICIT Type1
        // Type3 ::= [2] Type2
        // Type4 ::= [APPLICATION 7] IMPLICIT Type3
        val buffer =
          Buffer()
            .write("670743054A6F6E6573".decodeHex())
    
        val derReader = DerReader(buffer)
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

       * address.
       */
      private fun routeMatchesAny(candidates: List<Route>): Boolean {
        return candidates.any {
          it.proxy.type() == Proxy.Type.DIRECT &&
            route.proxy.type() == Proxy.Type.DIRECT &&
            route.socketAddress == it.socketAddress
        }
      }
    
      private fun supportsUrl(url: HttpUrl): Boolean {
        lock.assertHeld()
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_4x.md

            val part = multipartReader.nextPart() ?: break
            process(part.headers, part.body)
          }
        }
        ```
    
     *  New: `MediaType.parameter()` gets a parameter like `boundary` from a media type like
        `multipart/mixed; boundary="abc"`.
    
     *  New: `Authenticator.JAVA_NET_AUTHENTICATOR` forwards authentication requests to
        `java.net.Authenticator`. This obsoletes `JavaNetAuthenticator` in the `okhttp-urlconnection`
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

      internal val plansToCancel = CopyOnWriteArrayList<RoutePlanner.Plan>()
    
      override fun timeout(): Timeout = timeout
    
      @SuppressWarnings("CloneDoesntCallSuperClone") // We are a final type & this saves clearing state.
      override fun clone(): Call = RealCall(client, originalRequest, forWebSocket)
    
      override fun request(): Request = originalRequest
    
      /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  6. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

            |-----END RSA PRIVATE KEY-----
            |
            """.trimMargin(),
          )
          fail<Any>()
        } catch (expected: IllegalArgumentException) {
          assertThat(expected.message).isEqualTo("unexpected type: RSA PRIVATE KEY")
        }
      }
    
      @Test
      fun decodeMalformed() {
        try {
          decode(
            """
            |-----BEGIN CERTIFICATE-----
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

          private var type = MIXED
          private val parts = mutableListOf<Part>()
    
          /**
           * Set the MIME type. Expected values for `type` are [MIXED] (the default), [ALTERNATIVE],
           * [DIGEST], [PARALLEL] and [FORM].
           */
          fun setType(type: MediaType) =
            apply {
              require(type.type == "multipart") { "multipart != $type" }
              this.type = type
            }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

    import okhttp3.internal.http2.Http2.TYPE_CONTINUATION
    import okhttp3.internal.http2.Http2.TYPE_DATA
    import okhttp3.internal.http2.Http2.TYPE_GOAWAY
    import okhttp3.internal.http2.Http2.TYPE_HEADERS
    import okhttp3.internal.http2.Http2.TYPE_PING
    import okhttp3.internal.http2.Http2.TYPE_PUSH_PROMISE
    import okhttp3.internal.http2.Http2.TYPE_RST_STREAM
    import okhttp3.internal.http2.Http2.TYPE_SETTINGS
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

    import okhttp3.internal.http2.Http2.TYPE_CONTINUATION
    import okhttp3.internal.http2.Http2.TYPE_DATA
    import okhttp3.internal.http2.Http2.TYPE_GOAWAY
    import okhttp3.internal.http2.Http2.TYPE_HEADERS
    import okhttp3.internal.http2.Http2.TYPE_PING
    import okhttp3.internal.http2.Http2.TYPE_PRIORITY
    import okhttp3.internal.http2.Http2.TYPE_PUSH_PROMISE
    import okhttp3.internal.http2.Http2.TYPE_RST_STREAM
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Request.kt

      @JvmName("reifiedTag")
      inline fun <reified T : Any> tag(): T? = tag(T::class)
    
      /** Returns the tag attached with [type] as a key, or null if no tag is attached with that key. */
      fun <T : Any> tag(type: KClass<T>): T? = type.java.cast(tags[type])
    
      /**
       * Returns the tag attached with `Object.class` as a key, or null if no tag is attached with
       * that key.
       *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top