Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for nextPart (0.09 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
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 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)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 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"`.
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 17 13:25:31 UTC 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)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K 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;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizer.java

            queue.clear();
            int nextStart = 0;
            final int end = block.length();
            boolean afterSynonymProduced = false;
            final ByteArrayDataInput bytesReader = new ByteArrayDataInput();
            for (int idx = 0; idx < synonyms.size(); idx++) {
                final MyToken synonym = synonyms.get(idx);
                tokenizePartialBlock(nextStart, synonym.startOffset, afterSynonymProduced);
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 17K bytes
    - Viewed (0)
  7. 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);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 21:14:05 UTC 2024
    - 24.5K 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 ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Sep 30 10:47:31 UTC 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() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:07:29 UTC 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
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top