Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for nextPart (0.33 sec)

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

            boundary = "simple boundary",
            source = Buffer().writeUtf8(multipart),
          )
    
        parts.nextPart()!!
        val partMno = parts.nextPart()!!
        assertThat(partMno.body.readUtf8()).isEqualTo("mnop")
    
        assertThat(parts.nextPart()).isNull()
      }
    
      @Test fun `cannot read part after calling nextPart`() {
        val multipart =
          """
          |--simple boundary
          |
          |abcd
          |efgh
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

     * until [nextPart] returns null. After calling [nextPart] any preceding parts should not be read.
     *
     * Typical use loops over the parts in sequence:
     *
     * ```kotlin
     * val response: Response = call.execute()
     * val multipartReader = MultipartReader(response.body!!)
     *
     * multipartReader.use {
     *   while (true) {
     *     val part = multipartReader.nextPart() ?: break
     *     process(part.headers, part.body)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_4x.md

        ```kotlin
        val response: Response = call.execute()
        val multipartReader = MultipartReader(response.body!!)
    
        multipartReader.use {
          while (true) {
            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"`.
    
    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)
  4. cmd/bucket-handlers.go

    		maxMemoryBytes := 2 * int64(10<<20)
    		maxMemoryBytes -= int64(len(name))
    		maxMemoryBytes -= mapEntryOverhead
    		if maxMemoryBytes < 0 {
    			// We can't actually take this path, since nextPart would already have
    			// rejected the MIME headers for being too large. Check anyway.
    			apiErr := errorCodes.ToAPIErr(ErrMalformedPOSTRequest)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  5. okhttp/api/okhttp.api

    	public fun <init> (Lokhttp3/ResponseBody;)V
    	public fun <init> (Lokio/BufferedSource;Ljava/lang/String;)V
    	public final fun boundary ()Ljava/lang/String;
    	public fun close ()V
    	public final fun nextPart ()Lokhttp3/MultipartReader$Part;
    }
    
    public final class okhttp3/MultipartReader$Part : java/io/Closeable {
    	public fun <init> (Lokhttp3/Headers;Lokio/BufferedSource;)V
    	public final fun body ()Lokio/BufferedSource;
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Splitter.java

           * The returned string will be from the end of the last match to the beginning of the next
           * one. nextStart is the start position of the returned substring, while offset is the place
           * to start looking for a separator.
           */
          int nextStart = offset;
          while (offset != -1) {
            int start = nextStart;
            int end;
    
            int separatorPosition = separatorStart(offset);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Splitter.java

           * The returned string will be from the end of the last match to the beginning of the next
           * one. nextStart is the start position of the returned substring, while offset is the place
           * to start looking for a separator.
           */
          int nextStart = offset;
          while (offset != -1) {
            int start = nextStart;
            int end;
    
            int separatorPosition = separatorStart(offset);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            int len = this.length;
    
            if ( this.next != null ) {
                int nextStart = dstIndex;
                dstIndex += this.next.encode(dst, dstIndex);
                int off = nextStart - start;
                SMBUtil.writeInt4(off, dst, start + 20);
                len += dstIndex - nextStart;
            }
    
            if ( this.digest != null ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Sep 30 10:47:31 GMT 2018
    - 19.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/DfsImpl.java

                            r.getPath(),
                            path,
                            nextPath));
                }
                DfsReferralData nextstart = resolve(tf, r.getServer(), r.getShare(), nextPath, depthLimit - 1);
                DfsReferralData next = nextstart;
    
                if ( next != null ) {
                    do {
                        if ( log.isDebugEnabled() ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:07:29 GMT 2023
    - 29.1K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg mime/multipart, method (*Part) FileName() string
    pkg mime/multipart, method (*Part) FormName() string
    pkg mime/multipart, method (*Part) Read([]uint8) (int, error)
    pkg mime/multipart, method (*Reader) NextPart() (*Part, error)
    pkg mime/multipart, method (*Reader) ReadForm(int64) (*Form, error)
    pkg mime/multipart, method (*Writer) Boundary() string
    pkg mime/multipart, method (*Writer) Close() error
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top