cosmetic fixes
This commit is contained in:
parent
1da793ecb4
commit
d624688f08
3 changed files with 8 additions and 7 deletions
|
@ -14,6 +14,7 @@ module org.xbib.net.http.client.netty.secure.test {
|
||||||
requires org.xbib.net.http.client;
|
requires org.xbib.net.http.client;
|
||||||
requires org.xbib.net.http.client.netty;
|
requires org.xbib.net.http.client.netty;
|
||||||
requires org.xbib.net.http.client.netty.secure;
|
requires org.xbib.net.http.client.netty.secure;
|
||||||
|
requires io.netty.handler.proxy;
|
||||||
exports org.xbib.net.http.client.netty.secure.test;
|
exports org.xbib.net.http.client.netty.secure.test;
|
||||||
opens org.xbib.net.http.client.netty.secure.test;
|
opens org.xbib.net.http.client.netty.secure.test;
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ class Https1Test {
|
||||||
" headers = " + resp.getHeaders() +
|
" headers = " + resp.getHeaders() +
|
||||||
" body = " + resp.getBodyAsChars(StandardCharsets.UTF_8) +
|
" body = " + resp.getBodyAsChars(StandardCharsets.UTF_8) +
|
||||||
" ssl = " + dumpCertificates((HttpsResponse) resp)))
|
" ssl = " + dumpCertificates((HttpsResponse) resp)))
|
||||||
.build();
|
.build();
|
||||||
client.execute(request).get().close();
|
client.execute(request).get().close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,16 +24,16 @@ class Http1Test {
|
||||||
.setConfig(config)
|
.setConfig(config)
|
||||||
.build()) {
|
.build()) {
|
||||||
HttpRequest request = HttpRequest.get()
|
HttpRequest request = HttpRequest.get()
|
||||||
.setURL("http://httpbin.org")
|
.setURL("http://httpbin.org")
|
||||||
.setResponseListener(resp -> {
|
.setResponseListener(resp -> {
|
||||||
logger.log(Level.INFO,
|
logger.log(Level.INFO,
|
||||||
"local address = " + resp.getLocalAddress() +
|
"local address = " + resp.getLocalAddress() +
|
||||||
" got response = " + resp.getHeaders() +
|
" got response = " + resp.getHeaders() +
|
||||||
resp.getBodyAsChars(StandardCharsets.UTF_8) +
|
resp.getBodyAsChars(StandardCharsets.UTF_8) +
|
||||||
" status=" + resp.getStatus());
|
" status=" + resp.getStatus());
|
||||||
received.set(true);
|
received.set(true);
|
||||||
})
|
})
|
||||||
.build();
|
.build();
|
||||||
client.execute(request).get().close();
|
client.execute(request).get().close();
|
||||||
}
|
}
|
||||||
assertTrue(received.get());
|
assertTrue(received.get());
|
||||||
|
|
Loading…
Reference in a new issue