Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for addPart (0.15 sec)

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

          |--123
          |
          |Fox
          |--123--
          |
          """.trimMargin().replace("\n", "\r\n")
        val body =
          MultipartBody.Builder("123")
            .addPart("Quick".toRequestBody(null))
            .addPart("Brown".toRequestBody(null))
            .addPart("Fox".toRequestBody(null))
            .build()
        assertThat(body.boundary).isEqualTo("123")
        assertThat(body.type).isEqualTo(MultipartBody.MIXED)
    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. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

              this.type = type
            }
    
          /** Add a part to the body. */
          fun addPart(body: RequestBody) =
            apply {
              addPart(Part.create(body))
            }
    
          /** Add a part to the body. */
          fun addPart(
            headers: Headers?,
            body: RequestBody,
          ) = apply {
            addPart(Part.create(headers, body))
          }
    
          /** Add a form data part to the body. */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        builder = builder.addPart(requestBody)
        builder = builder.addPart(headersOf(), requestBody)
        builder = builder.addPart(null, requestBody)
        builder = builder.addFormDataPart("", "")
        builder = builder.addFormDataPart("", "", requestBody)
        builder = builder.addFormDataPart("", null, requestBody)
        builder = builder.addPart(MultipartBody.Part.create(requestBody))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

      @Test fun `multipart round trip`() {
        val body =
          MultipartBody.Builder("boundary")
            .setType(MultipartBody.PARALLEL)
            .addPart("Quick".toRequestBody("text/plain".toMediaType()))
            .addFormDataPart("color", "Brown")
            .addFormDataPart("animal", "fox.txt", "Fox".toRequestBody())
            .build()
    
        val bodyContent = Buffer()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/SLinkedList.java

            header.previous = header;
            for (int i = 0; i < size; i++) {
                addLast((E) s.readObject());
            }
        }
    
        @Override
        public Object clone() {
            final SLinkedList<E> copy = new SLinkedList<>();
            for (Entry e = header.next; e != header; e = e.next) {
                copy.addLast(e.element);
            }
            return copy;
        }
    
        /**
         * 配列に変換します。
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. statement.go

    }
    
    // Quote returns quoted value
    func (stmt *Statement) Quote(field interface{}) string {
    	var builder strings.Builder
    	stmt.QuoteTo(&builder, field)
    	return builder.String()
    }
    
    // AddVar add var
    func (stmt *Statement) AddVar(writer clause.Writer, vars ...interface{}) {
    	for idx, v := range vars {
    		if idx > 0 {
    			writer.WriteByte(',')
    		}
    
    		switch v := v.(type) {
    		case sql.NamedArg:
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

                                flist.toArray(new FunctionScoreQueryBuilder.FilterFunctionBuilder[flist.size()]))
                        .boostMode(CombineFunction.MULTIPLY));
                reader.addSort(SortBuilders.fieldSort(fessConfig.getIndexFieldClickCount()));
                reader.addSort(SortBuilders.scoreSort());
                return reader;
            }, docPerReq, () -> {
                systemHelper.calibrateCpuLoad();
                ThreadUtil.sleep(interval);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Streams.java

            if (state.set) {
              return java.util.Optional.of(state.get());
            }
            // fall back to the last split
            continue;
          }
          splits.addLast(prefix);
          splits.addLast(spliterator);
        }
        return java.util.Optional.empty();
      }
    
      /**
       * Returns the last element of the specified stream, or {@link OptionalInt#empty} if the stream is
       * empty.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

              taskRunner.condition.signalAll()
            }
          }
    
        if (strategy == ResumePriority.BeforeOtherTasks) {
          serialTaskQueue.addFirst(yieldCompleteTask)
        } else {
          serialTaskQueue.addLast(yieldCompleteTask)
        }
    
        val startedTask = startNextTask()
        val otherTasksStarted = startedTask != yieldCompleteTask
    
        try {
          while (currentTask != self) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequest.java

            // set query.
            final QueryBuilder q = buildQuery(query, fields);
    
            // set function score
            final QueryBuilder queryBuilder = buildFunctionScoreQuery(query, q);
            builder.addSort("_score", SortOrder.DESC);
    
            // set filter query.
            final List<QueryBuilder> filterList = new ArrayList<>(10);
            if (!tags.isEmpty()) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top