Search Options

Results per page
Sort
Preferred Languages
Advance

Results 541 - 550 of 924 for builder2 (0.11 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/PostMultipart.java

        RequestBody requestBody = new MultipartBody.Builder()
            .setType(MultipartBody.FORM)
            .addFormDataPart("title", "Square Logo")
            .addFormDataPart("image", "logo-square.png",
                RequestBody.create(
                    new File("docs/images/logo-square.png"),
                    MEDIA_TYPE_PNG))
            .build();
    
        Request request = new Request.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jun 24 12:59:42 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          return new MapMakerInternalMap<>(builder, StrongKeyWeakValueEntry.Helper.<K, V>instance());
        }
        if (builder.getKeyStrength() == Strength.WEAK
            && builder.getValueStrength() == Strength.STRONG) {
          return new MapMakerInternalMap<>(builder, WeakKeyStrongValueEntry.Helper.<K, V>instance());
        }
        if (builder.getKeyStrength() == Strength.WEAK && builder.getValueStrength() == Strength.WEAK) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionRangeResolverRequest.java

            return builder()
                    .session(nonNull(session, "session cannot be null"))
                    .artifactCoordinates(nonNull(artifactCoordinates, "artifactCoordinates cannot be null"))
                    .repositories(repositories)
                    .build();
        }
    
        @Nonnull
        static VersionResolverRequestBuilder builder() {
            return new VersionResolverRequestBuilder();
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Sep 12 06:19:14 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/RewriteResponseCacheControl.java

        cache.evictAll();
    
        client = new OkHttpClient.Builder()
            .cache(cache)
            .build();
      }
    
      public void run() throws Exception {
        for (int i = 0; i < 5; i++) {
          System.out.println("    Request: " + i);
    
          Request request = new Request.Builder()
              .url("https://api.github.com/search/repositories?q=http")
              .build();
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 12 03:31:36 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt

        val heldCertificate =
          HeldCertificate.Builder()
            .commonName("localhost")
            .addSubjectAlternativeName("localhost")
            .addSubjectAlternativeName("localhost.localdomain")
            .build()
        return@lazy HandshakeCertificates.Builder()
          .heldCertificate(heldCertificate)
          .addTrustedCertificate(heldCertificate.certificate)
          .build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. internal/config/certsinfo.go

    )
    
    // printName prints the fields of a distinguished name, which include such
    // things as its common name and locality.
    func printName(names []pkix.AttributeTypeAndValue, buf *strings.Builder) []string {
    	values := []string{}
    	for _, name := range names {
    		oid := name.Type
    		//nolint:gocritic
    		if len(oid) == 4 && oid[0] == 2 && oid[1] == 5 && oid[2] == 4 {
    			switch oid[3] {
    			case 3:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 16 17:28:29 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/StandardMutableNetwork.java

    final class StandardMutableNetwork<N, E> extends StandardNetwork<N, E>
        implements MutableNetwork<N, E> {
    
      /** Constructs a mutable graph with the properties specified in {@code builder}. */
      StandardMutableNetwork(NetworkBuilder<? super N, ? super E> builder) {
        super(builder);
      }
    
      @Override
      @CanIgnoreReturnValue
      public boolean addNode(N node) {
        checkNotNull(node, "node");
    
        if (containsNode(node)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactDeployerRequest.java

        @Nonnull
        static ArtifactDeployerRequestBuilder builder() {
            return new ArtifactDeployerRequestBuilder();
        }
    
        @Nonnull
        static ArtifactDeployerRequest build(
                @Nonnull Session session,
                @Nonnull RemoteRepository repository,
                @Nonnull Collection<ProducedArtifact> artifacts) {
            return builder()
                    .session(nonNull(session, "session cannot be null"))
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 16:43:07 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Chars.java

        int len = array.length;
        if (len == 0) {
          return "";
        }
    
        StringBuilder builder = new StringBuilder(len + separator.length() * (len - 1));
        builder.append(array[0]);
        for (int i = 1; i < len; i++) {
          builder.append(separator).append(array[i]);
        }
        return builder.toString();
      }
    
      /**
       * Returns a comparator that compares two {@code char} arrays <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Cookie.kt

            append("; samesite=").append(sameSite)
          }
    
          return toString()
        }
      }
    
      fun newBuilder(): Builder = Builder(this)
    
      /**
       * Builds a cookie. The [name], [value], and [domain] values must all be set before calling
       * [build].
       */
      class Builder() {
        private var name: String? = null
        private var value: String? = null
        private var expiresAt = MAX_DATE
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:12:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top