Search in sources :

Example 6 with RequestOptions

use of io.vertx.core.http.RequestOptions in project vert.x by eclipse.

the class Http1xTLSTest method testClearClientRequestOptionsSetClear.

@Test
public // Client trusts all server certs
void testClearClientRequestOptionsSetClear() throws Exception {
    RequestOptions options = new RequestOptions().setHost(DEFAULT_HTTP_HOST).setURI(DEFAULT_TEST_URI).setPort(4043).setSsl(false);
    testTLS(Cert.NONE, Trust.SERVER_JKS, Cert.SERVER_JKS, Trust.NONE).clientSSL(false).serverSSL(false).requestOptions(options).pass();
}
Also used : RequestOptions(io.vertx.core.http.RequestOptions) Test(org.junit.Test)

Aggregations

RequestOptions (io.vertx.core.http.RequestOptions)6 Test (org.junit.Test)6 HttpServer (io.vertx.core.http.HttpServer)2 HttpServerOptions (io.vertx.core.http.HttpServerOptions)2