Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 68 for name (0.27 sec)

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

      }
    
      @Test
      fun fieldAndTwoFiles() {
        val expected =
          """
          |--AaB03x
          |Content-Disposition: form-data; name="submit-name"
          |
          |Larry
          |--AaB03x
          |Content-Disposition: form-data; name="files"
          |Content-Type: multipart/mixed; boundary=BbC04y
          |
          |--BbC04y
          |Content-Disposition: file; filename="file1.txt"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

        //  ["℡.com", "K.com"]
        // to contain exactly (and in same order):
        //  ["���.com", "���.com"]
        platform.assumeNotBouncyCastle()
    
        // $ cat ./cert.cnf
        // [req]
        // distinguished_name=distinguished_name
        // req_extensions=req_extensions
        // x509_extensions=x509_extensions
        // [distinguished_name]
        // [req_extensions]
        // [x509_extensions]
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 40.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

        val currentThread = Thread.currentThread()
        val oldName = currentThread.name
        currentThread.name = task.name
    
        var delayNanos = -1L
        try {
          delayNanos = task.runOnce()
        } finally {
          lock.withLock {
            afterRun(task, delayNanos)
          }
          currentThread.name = oldName
        }
      }
    
      private fun afterRun(
        task: Task,
        delayNanos: Long,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

        attributeTypeAndValue.asSetOf().asSequenceOf()
    
      /**
       * ```
       * Name ::= CHOICE {
       *   -- only one possibility for now --
       *   rdnSequence  RDNSequence
       * }
       * ```
       */
      internal val name: DerAdapter<Pair<DerAdapter<*>, Any?>> =
        Adapters.choice(
          rdnSequence,
        )
    
      /**
       * ```
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.6K bytes
    - Viewed (1)
  5. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

    /** Returns true if we should void putting this this header in an exception or toString(). */
    internal fun isSensitiveHeader(name: String): Boolean {
      return name.equals("Authorization", ignoreCase = true) ||
        name.equals("Cookie", ignoreCase = true) ||
        name.equals("Proxy-Authorization", ignoreCase = true) ||
        name.equals("Set-Cookie", ignoreCase = true)
    }
    
    internal fun Char.parseHexDigit(): Int =
      when (this) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Headers.kt

        ) = commonAdd(name, value)
    
        /**
         * Add a header with the specified name and value. Does validation of header names, allowing
         * non-ASCII values.
         */
        fun addUnsafeNonAscii(
          name: String,
          value: String,
        ) = apply {
          headersCheckName(name)
          addLenient(name, value)
        }
    
        /**
         * Adds all headers from an existing collection.
         */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  7. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

        fun setHeader(
          name: String,
          value: Any,
        ) = apply {
          removeHeader(name)
          addHeader(name, value)
        }
    
        /** Removes all headers named [name]. */
        fun removeHeader(name: String) =
          apply {
            headers.removeAll(name)
          }
    
        fun body(body: Buffer) = body(body.toMockResponseBody())
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 13.3K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/Response.kt

            this.handshake = handshake
          }
    
        /**
         * Sets the header named [name] to [value]. If this request already has any headers
         * with that name, they are all replaced.
         */
        open fun header(
          name: String,
          value: String,
        ) = commonHeader(name, value)
    
        /**
         * Adds a header with [name] to [value]. Prefer this method for multiply-valued
         * headers like "Set-Cookie".
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

     * TLS:
     *
     *  * **A common name.** This is a string identifier for the certificate. It usually describes the
     *    purpose of the certificate like "Entrust Root Certification Authority - G2" or
     *    "www.squareup.com".
     *
     *  * **A set of hostnames.** These are in the certificate's subject alternative name (SAN)
     *    extension. A subject alternative name is either a literal hostname (`squareup.com`), a literal
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
  10. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

          cachedHeaders: Headers,
          networkHeaders: Headers,
        ): Headers {
          val result = Headers.Builder()
    
          for (index in 0 until cachedHeaders.size) {
            val fieldName = cachedHeaders.name(index)
            val value = cachedHeaders.value(index)
            if ("Warning".equals(fieldName, ignoreCase = true) && value.startsWith("1")) {
              // Drop 100-level freshness warnings.
              continue
            }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top