Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,288 for part3 (0.1 sec)

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

          MultipartBody.Builder()
            .addPart(headersOf("Foo", "Bar"), "Baz".toRequestBody(null))
            .build()
        assertThat(body.parts.size).isEqualTo(1)
        val part1Buffer = Buffer()
        val part1 = body.part(0)
        part1.body.writeTo(part1Buffer)
        assertThat(part1.headers).isEqualTo(headersOf("Foo", "Bar"))
        assertThat(part1Buffer.readUtf8()).isEqualTo("Baz")
      }
    
      @Test
      fun nonAsciiFilename() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. cmd/testdata/xl-many-parts.meta

    Harshavardhana <******@****.***> 1693690838 -0700
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 02 21:40:38 UTC 2023
    - 808.8K bytes
    - Viewed (0)
  3. LICENSE

    specifically granted under this License.  You may not convey a covered
    work if you are a party to an arrangement with a third party that is
    in the business of distributing software, under which you make payment
    to the third party based on the extent of your activity of conveying
    the work, and under which the third party grants, to any of the
    parties who would receive the covered work from you, a discriminatory
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 33.7K bytes
    - Viewed (0)
  4. docs/en/docs/deployment/https.md

    * For HTTPS, **the server** needs to **have "certificates"** generated by a **third party**.
        * Those certificates are actually **acquired** from the third party, not "generated".
    * Certificates have a **lifetime**.
        * They **expire**.
        * And then they need to be **renewed**, **acquired again** from the third party.
    * The encryption of the connection happens at the **TCP level**.
        * That's one layer **below HTTP**.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

            "application/multipart; boundary=\"simple boundary\"".toMediaType(),
          )
    
        val parts = MultipartReader(responseBody)
        assertThat(parts.boundary).isEqualTo("simple boundary")
    
        val part = parts.nextPart()!!
        assertThat(part.body.readUtf8()).isEqualTo("abcd")
    
        assertThat(parts.nextPart()).isNull()
      }
    
      @Test fun `truncated multipart`() {
        val multipart =
          """
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

            int index = version.indexOf('-');
    
            String part1;
            String part2 = null;
    
            if (index < 0) {
                part1 = version;
            } else {
                part1 = version.substring(0, index);
                part2 = version.substring(index + 1);
            }
    
            if (part2 != null) {
                if (part2.length() == 1 || !part2.startsWith("0")) {
                    buildNumber = tryParseInt(part2);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

              parts += part
            }
    
          /** Assemble the specified parts into a request body. */
          fun build(): MultipartBody {
            check(parts.isNotEmpty()) { "Multipart body must have at least one part." }
            return MultipartBody(boundary, type, parts.toImmutableList())
          }
        }
    
      companion object {
        /**
         * The "mixed" subtype of "multipart" is intended for use when the body parts are independent
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. cmd/erasure-multipart.go

    	currentFI := fi
    
    	// Allocate parts similar to incoming slice.
    	fi.Parts = make([]ObjectPartInfo, len(parts))
    
    	// Validate each part and then commit to disk.
    	for i, part := range parts {
    		partIdx := objectPartIndex(currentFI.Parts, part.PartNumber)
    		// All parts should have same part number.
    		if partIdx == -1 {
    			invp := InvalidPart{
    				PartNumber: part.PartNumber,
    				GotETag:    part.ETag,
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/InternetDomainName.java

       */
      private static boolean validateSyntax(List<String> parts) {
        int lastIndex = parts.size() - 1;
    
        // Validate the last part specially, as it has different syntax rules.
    
        if (!validatePart(parts.get(lastIndex), true)) {
          return false;
        }
    
        for (int i = 0; i < lastIndex; i++) {
          String part = parts.get(i);
          if (!validatePart(part, false)) {
            return false;
          }
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

     *   while (true) {
     *     val part = multipartReader.nextPart() ?: break
     *     process(part.headers, part.body)
     *   }
     * }
     * ```
     *
     * Note that [nextPart] will skip any unprocessed data from the preceding part. If the preceding
     * part is particularly large or if the underlying source is particularly slow, the [nextPart] call
     * may be slow!
     *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top