Search in sources :

Example 1 with HttpClientConnectionManager

use of software.amazon.awssdk.crt.http.HttpClientConnectionManager in project aws-crt-java by awslabs.

the class ProxyTest method testConnectionManager_TunnelingHttpsProxy_NoAuth_DoubleTls.

@Test
public void testConnectionManager_TunnelingHttpsProxy_NoAuth_DoubleTls() {
    skipIfNetworkUnavailable();
    Assume.assumeTrue(isEnvironmentSetUpForProxyTests());
    try (HttpClientConnectionManager manager = buildProxiedConnectionManager(ProxyTestType.TUNNELING_DOUBLE_TLS, ProxyAuthType.None)) {
        doHttpConnectionManagerProxyTest(manager);
    }
}
Also used : HttpClientConnectionManager(software.amazon.awssdk.crt.http.HttpClientConnectionManager) Test(org.junit.Test)

Example 2 with HttpClientConnectionManager

use of software.amazon.awssdk.crt.http.HttpClientConnectionManager in project aws-crt-java by awslabs.

the class ProxyTest method testConnectionManager_LegacyHttpsProxy_BasicAuth.

@Test
public void testConnectionManager_LegacyHttpsProxy_BasicAuth() {
    skipIfNetworkUnavailable();
    Assume.assumeTrue(isEnvironmentSetUpForProxyTests());
    try (HttpClientConnectionManager manager = buildProxiedConnectionManager(ProxyTestType.LEGACY_HTTPS, ProxyAuthType.Basic)) {
        doHttpConnectionManagerProxyTest(manager);
    }
}
Also used : HttpClientConnectionManager(software.amazon.awssdk.crt.http.HttpClientConnectionManager) Test(org.junit.Test)

Example 3 with HttpClientConnectionManager

use of software.amazon.awssdk.crt.http.HttpClientConnectionManager in project aws-crt-java by awslabs.

the class ProxyTest method testConnectionManager_LegacyHttpProxy_BasicAuth.

@Test
public void testConnectionManager_LegacyHttpProxy_BasicAuth() {
    skipIfNetworkUnavailable();
    Assume.assumeTrue(isEnvironmentSetUpForProxyTests());
    try (HttpClientConnectionManager manager = buildProxiedConnectionManager(ProxyTestType.LEGACY_HTTP, ProxyAuthType.Basic)) {
        doHttpConnectionManagerProxyTest(manager);
    }
}
Also used : HttpClientConnectionManager(software.amazon.awssdk.crt.http.HttpClientConnectionManager) Test(org.junit.Test)

Example 4 with HttpClientConnectionManager

use of software.amazon.awssdk.crt.http.HttpClientConnectionManager in project aws-crt-java by awslabs.

the class ProxyTest method testConnectionManager_ForwardingProxy_BasicAuth.

@Test
public void testConnectionManager_ForwardingProxy_BasicAuth() {
    skipIfNetworkUnavailable();
    Assume.assumeTrue(isEnvironmentSetUpForProxyTests());
    try (HttpClientConnectionManager manager = buildProxiedConnectionManager(ProxyTestType.FORWARDING, ProxyAuthType.Basic)) {
        doHttpConnectionManagerProxyTest(manager);
    }
}
Also used : HttpClientConnectionManager(software.amazon.awssdk.crt.http.HttpClientConnectionManager) Test(org.junit.Test)

Example 5 with HttpClientConnectionManager

use of software.amazon.awssdk.crt.http.HttpClientConnectionManager in project aws-crt-java by awslabs.

the class ProxyTest method testConnectionManager_TunnelingHttpsProxy_BasicAuth.

@Test
public void testConnectionManager_TunnelingHttpsProxy_BasicAuth() {
    skipIfNetworkUnavailable();
    Assume.assumeTrue(isEnvironmentSetUpForProxyTests());
    try (HttpClientConnectionManager manager = buildProxiedConnectionManager(ProxyTestType.TUNNELING_HTTPS, ProxyAuthType.Basic)) {
        doHttpConnectionManagerProxyTest(manager);
    }
}
Also used : HttpClientConnectionManager(software.amazon.awssdk.crt.http.HttpClientConnectionManager) Test(org.junit.Test)

Aggregations

HttpClientConnectionManager (software.amazon.awssdk.crt.http.HttpClientConnectionManager)20 Test (org.junit.Test)15 HttpClientConnection (software.amazon.awssdk.crt.http.HttpClientConnection)6 URI (java.net.URI)5 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)2 HttpClientConnectionManagerOptions (software.amazon.awssdk.crt.http.HttpClientConnectionManagerOptions)2 HttpRequest (software.amazon.awssdk.crt.http.HttpRequest)2 HttpStream (software.amazon.awssdk.crt.http.HttpStream)2 HttpStreamResponseHandler (software.amazon.awssdk.crt.http.HttpStreamResponseHandler)2 CompletableFuture (java.util.concurrent.CompletableFuture)1 HttpHeader (software.amazon.awssdk.crt.http.HttpHeader)1 ClientBootstrap (software.amazon.awssdk.crt.io.ClientBootstrap)1 SocketOptions (software.amazon.awssdk.crt.io.SocketOptions)1 TlsContext (software.amazon.awssdk.crt.io.TlsContext)1 TlsContextOptions (software.amazon.awssdk.crt.io.TlsContextOptions)1 CrtRequestContext (software.amazon.awssdk.http.crt.internal.CrtRequestContext)1 CrtRequestExecutor (software.amazon.awssdk.http.crt.internal.CrtRequestExecutor)1