Toggle navigation
Home
io.vertx.core.http.HttpClientRequest to java.util.function.Function<io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpClientResponse>>, io.vertx.core.http.HttpClientRequest>
No. of Instances - 1
No. of Commits - 1
No. of Projects - {'vert.x'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Internal -> Jdk
Mapping:
Add or Remove Method invocation
onSuccess(s -> { clientReq.handler(onSuccess(resp -> { assertEquals(200,resp.statusCode()); assertNotNull("request did not go through proxy",proxy.getLastUri()); assertEquals("Host header doesn't contain target host","localhost:8080",proxy.getLastRequestHeaders().get("Host")); testComplete(); } )); clientReq.exceptionHandler(this::fail); clientReq.end(); } )
to
onSuccess(s -> { HttpClientRequest req=reqFact.apply(onSuccess(resp -> { assertEquals(200,resp.statusCode()); assertNotNull("request did not go through proxy",proxy.getLastUri()); assertEquals("Host header doesn't contain target host","localhost:8080",proxy.getLastRequestHeaders().get("Host")); testComplete(); } )); req.exceptionHandler(this::fail); req.end(); } )
Rename Variable
clientReq
to
reqFact