Search Options

Results per page
Sort
Preferred Languages
Advance

Results 791 - 800 of 989 for BUILDER (0.06 sec)

  1. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

                  appendQuotedString(filename)
                }
              }
    
            val headers =
              Headers.Builder()
                .addUnsafeNonAscii("Content-Disposition", disposition)
                .build()
    
            return create(headers, body)
          }
        }
      }
    
      class Builder
        @JvmOverloads
        constructor(boundary: String = UUID.randomUUID().toString()) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(RowSortedTable.class, Tables.unmodifiableRowSortedTable(TreeBasedTable.create()))
              .put(ClassToInstanceMap.class, ImmutableClassToInstanceMap.builder().build())
              .put(ImmutableClassToInstanceMap.class, ImmutableClassToInstanceMap.builder().build())
              .put(Comparable.class, ByToString.INSTANCE)
              .put(Comparator.class, AlwaysEqual.INSTANCE)
              .put(Ordering.class, AlwaysEqual.INSTANCE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Interceptor.kt

     *
     * ```kotlin
     *   @Throws(IOException::class)
     *   override fun intercept(chain: Interceptor.Chain): Response {
     *     if (myConfig.isInvalid()) {
     *       return Response.Builder()
     *           .request(chain.request())
     *           .protocol(Protocol.HTTP_1_1)
     *           .code(400)
     *           .message("client config invalid")
     *           .body("client config invalid".toResponseBody(null))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/AutobahnTester.kt

     */
    class AutobahnTester {
      val client = OkHttpClient()
    
      private fun newWebSocket(
        path: String,
        listener: WebSocketListener,
      ): WebSocket {
        val request =
          Request.Builder()
            .url(HOST + path)
            .build()
        return client.newWebSocket(request, listener)
      }
    
      fun run() {
        try {
          val count = getTestCount()
          println("Test count: $count")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/SimplexTransferListenerTest.java

        }
    
        private static TransferEvent event(
                RepositorySystemSession session, TransferResource resource, TransferEvent.EventType type) {
            return new TransferEvent.Builder(session, resource).setType(type).build();
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(RowSortedTable.class, Tables.unmodifiableRowSortedTable(TreeBasedTable.create()))
              .put(ClassToInstanceMap.class, ImmutableClassToInstanceMap.builder().build())
              .put(ImmutableClassToInstanceMap.class, ImmutableClassToInstanceMap.builder().build())
              .put(Comparable.class, ByToString.INSTANCE)
              .put(Comparator.class, AlwaysEqual.INSTANCE)
              .put(Ordering.class, AlwaysEqual.INSTANCE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  7. okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt

          if (value.startsWith("\"") && value.endsWith("\"") && value.length >= 2) {
            value = value.substring(1, value.length - 1)
          }
    
          result.add(
            Cookie.Builder()
              .name(name)
              .value(value)
              .domain(url.host)
              .build(),
          )
          pos = pairEnd + 1
        }
        return result
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:10:43 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/FormBody.kt

          buffer.writeByte('='.code)
          buffer.writeUtf8(encodedValues[i])
        }
    
        if (countBytes) {
          byteCount = buffer.size
          buffer.clear()
        }
    
        return byteCount
      }
    
      class Builder
        @JvmOverloads
        constructor(private val charset: Charset? = null) {
          private val names = mutableListOf<String>()
          private val values = mutableListOf<String>()
    
          fun add(
            name: String,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

      private lateinit var client: OkHttpClient
    
      @BeforeEach
      fun setUp() {
        platform.assumeLoom()
        assertThat(System.getProperty("jdk.tracePinnedThreads")).isNotEmpty()
    
        client =
          OkHttpClient.Builder()
            .trustMockServer()
            .dispatcher(Dispatcher(newVirtualThreadPerTaskExecutor()))
            .build()
    
        executor = newVirtualThreadPerTaskExecutor()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 11:15:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/suggest/SuggesterBuilder.java

            return this;
        }
    
        public Suggester build(final Client client, final String id) {
            if (settings == null) {
                if (settingsBuilder == null) {
                    settingsBuilder = SuggestSettings.builder();
                }
                settings = settingsBuilder.build(client, id);
            }
            settings.init();
    
            if (readingConverter == null) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top