Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 47 for set_protocol (0.19 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. okhttp/src/main/kotlin/okhttp3/Protocol.kt

     */
    package okhttp3
    
    import okio.IOException
    
    /**
     * Protocols that OkHttp implements for [ALPN][ietf_alpn] selection.
     *
     * ## Protocol vs Scheme
     *
     * Despite its name, [java.net.URL.getProtocol] returns the [scheme][java.net.URI.getScheme] (http,
     * https, etc.) of the URL, not the protocol (http/1.1, spdy/3.1, etc.). OkHttp uses the word
     * *protocol* to identify how HTTP messages are framed.
     *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:17:33 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt

      }
    
      override fun getLocalPrincipal(): Principal {
        return delegate!!.localPrincipal
      }
    
      override fun getCipherSuite(): String {
        return delegate!!.cipherSuite
      }
    
      override fun getProtocol(): String {
        return delegate!!.protocol
      }
    
      override fun getPeerHost(): String {
        return delegate!!.peerHost
      }
    
      override fun getPeerPort(): Int {
        return delegate!!.peerPort
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

        private ProxyInfo proxyInfo(ArtifactRepository repository) {
            ProxyInfo proxyInfo = new ProxyInfo();
            proxyInfo.setHost(repository.getProxy().getHost());
            proxyInfo.setType(repository.getProxy().getProtocol());
            proxyInfo.setPort(repository.getProxy().getPort());
            proxyInfo.setNonProxyHosts(repository.getProxy().getNonProxyHosts());
            proxyInfo.setUserName(repository.getProxy().getUserName());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/FakeSSLSession.kt

        throw UnsupportedOperationException()
      }
    
      @Throws(SSLPeerUnverifiedException::class)
      override fun getPeerPrincipal(): Principal {
        throw UnsupportedOperationException()
      }
    
      override fun getProtocol(): String {
        throw UnsupportedOperationException()
      }
    
      override fun getSessionContext(): SSLSessionContext {
        throw UnsupportedOperationException()
      }
    
      override fun putValue(
        s: String,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. 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)
  7. guava-tests/test/com/google/common/io/IoTestCase.java

        }
    
        URL testFileUrl = IoTestCase.class.getResource("testdata/i18n.txt");
        if (testFileUrl == null) {
          throw new RuntimeException("unable to locate testdata directory");
        }
    
        if (testFileUrl.getProtocol().equals("file")) {
          try {
            File testFile = new File(testFileUrl.toURI());
            testDir = testFile.getParentFile(); // the testdata directory
          } catch (Exception ignore) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 31 12:36:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java

            }
    
            public void setUrl(String url) {}
    
            public String getBasedir() {
                return null;
            }
    
            public String getProtocol() {
                return repository.getProtocol();
            }
    
            public String getId() {
                return repository.getId();
            }
    
            public void setId(String id) {}
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpAuthentication.java

                return false;
            }
    
            try {
                final int pos = path.indexOf('/', 6);
                final URL uri = new URL(pos == -1 ? path : path.substring(0, pos));
                if (!"ftp".equals(uri.getProtocol()) || StringUtil.isNotBlank(server) && !server.equals(uri.getHost())) {
                    return false;
                }
                int p = uri.getPort();
                if (p == -1) {
                    p = 21;
                }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/RemoteRepository.java

     * @see ModelBase#getPluginRepositories()
     */
    @Experimental
    @Immutable
    public interface RemoteRepository extends Repository {
    
        @Nonnull
        String getUrl();
    
        @Nonnull
        String getProtocol();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top