Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for setProtocols (0.08 sec)

  1. samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/ClientAndServer.java

        socketFile.delete(); // Clean up from previous runs.
    
        MockWebServer server = new MockWebServer();
        server.setServerSocketFactory(new UnixDomainServerSocketFactory(socketFile));
        server.setProtocols(Collections.singletonList(Protocol.H2_PRIOR_KNOWLEDGE));
        server.enqueue(new MockResponse().setBody("hello"));
        server.start();
    
        OkHttpClient client = new OkHttpClient.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Dec 24 03:46:30 UTC 2018
    - 2.1K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

      @JvmName("-deprecated_protocols")
      @Deprecated(
        message = "moved to var",
        replaceWith = ReplaceWith(expression = "run { this.protocols = protocols }"),
        level = DeprecationLevel.ERROR,
      )
      fun setProtocols(protocols: List<Protocol>) {
        delegate.protocols = protocols
      }
    
      @JvmName("-deprecated_protocols")
      @Deprecated(
        message = "moved to var",
        replaceWith = ReplaceWith(expression = "protocols"),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. mockwebserver/api/mockwebserver3.api

    	public final fun requireClientAuth ()V
    	public final fun setBodyLimit (J)V
    	public final fun setDispatcher (Lmockwebserver3/Dispatcher;)V
    	public final fun setProtocolNegotiationEnabled (Z)V
    	public final fun setProtocols (Ljava/util/List;)V
    	public final fun setServerSocketFactory (Ljavax/net/ServerSocketFactory;)V
    	public final fun setStarted (Z)V
    	public final fun shutdown ()V
    	public final fun start ()V
    	public final fun start (I)V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 03 21:59:45 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/api/mockwebserver.api

    	public final fun requireClientAuth ()V
    	public final fun setBodyLimit (J)V
    	public final fun setDispatcher (Lokhttp3/mockwebserver/Dispatcher;)V
    	public final fun setProtocolNegotiationEnabled (Z)V
    	public final fun setProtocols (Ljava/util/List;)V
    	public final fun setServerSocketFactory (Ljavax/net/ServerSocketFactory;)V
    	public final fun shutdown ()V
    	public final fun start ()V
    	public final fun start (I)V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jul 22 12:28:51 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        mockWebServer.setServerSocketFactory(ServerSocketFactory.getDefault())
        mockWebServer.setBodyLimit(0L)
        mockWebServer.setProtocolNegotiationEnabled(false)
        mockWebServer.setProtocols(listOf(Protocol.HTTP_1_1))
        var requestCount: Int = mockWebServer.getRequestCount()
      }
    
      @Test @Disabled
      fun multipartBody() {
        val multipartBody: MultipartBody = MultipartBody.Builder().build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertThat(zeroLengthPayload.headers["content-length"]).isEqualTo("0")
        assertThat(zeroLengthPayload.bodySize).isEqualTo(0L)
      }
    
      @Test
      fun setProtocols() {
        server.enqueue(
          MockResponse(body = "A"),
        )
        client =
          client.newBuilder()
            .protocols(Arrays.asList(Protocol.HTTP_1_1))
            .build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  7. compat/maven-artifact/src/main/java/org/apache/maven/repository/Proxy.java

         */
        public String getProtocol() {
            return protocol;
        }
    
        /**
         * @param protocol the protocol of the proxy server like <i>SOCKSv4</i>
         */
        public void setProtocol(String protocol) {
            this.protocol = protocol;
        }
    
        public String getNonProxyHosts() {
            return nonProxyHosts;
        }
    
        public void setNonProxyHosts(String nonProxyHosts) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/aether/LegacyRepositorySystemSessionExtender.java

                if (proxy != null) {
                    org.apache.maven.repository.Proxy p = new org.apache.maven.repository.Proxy();
                    p.setHost(proxy.getHost());
                    p.setProtocol(proxy.getType());
                    p.setPort(proxy.getPort());
                    if (proxy.getAuthentication() != null) {
                        repo = new RemoteRepository.Builder(repo).setProxy(proxy).build();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

                            }
                        }
    
                        Proxy p = new Proxy();
                        p.setHost(proxy.getHost());
                        p.setProtocol(proxy.getProtocol());
                        p.setPort(proxy.getPort());
                        p.setNonProxyHosts(proxy.getNonProxyHosts());
                        p.setUserName(proxy.getUsername());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

                    if (proxy != null) {
                        Proxy p = new Proxy();
                        p.setHost(proxy.getHost());
                        p.setProtocol(proxy.getType());
                        p.setPort(proxy.getPort());
                        if (proxy.getAuthentication() != null) {
                            repo = new RemoteRepository.Builder(repo)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.6K bytes
    - Viewed (0)
Back to top