@@ -1951,7 +1951,7 @@ public void testRequestExceptionHandlerContext() throws Exception {
19511951 assertSameEventLoop (clientCtx , Vertx .currentContext ());
19521952 complete ();
19531953 }));
1954- req .sendHead ();
1954+ req .writeHead ();
19551955 }));
19561956 });
19571957 await ();
@@ -2077,7 +2077,7 @@ public void testContexts() throws Exception {
20772077 assertSameEventLoop (requestCtx , Vertx .currentContext ());
20782078 req .end ();
20792079 });
2080- req .sendHead ().onComplete (version -> {
2080+ req .writeHead ().onComplete (version -> {
20812081 assertSameEventLoop (requestCtx , Vertx .currentContext ());
20822082 fill (data , req , cf ::complete );
20832083 });
@@ -2796,7 +2796,7 @@ public void testDoNotReuseConnectionWhenResponseEndsBeforeRequest() throws Excep
27962796 // Send head to the server and trigger the request handler
27972797 req
27982798 .setChunked (true )
2799- .sendHead ();
2799+ .writeHead ();
28002800 }));
28012801
28022802 client .request (new RequestOptions (requestOptions ).setURI ("/2" ))
@@ -2866,7 +2866,7 @@ public void testClientConnectionExceptionHandler() throws Exception {
28662866 })
28672867 .build ();
28682868 client .request (requestOptions )
2869- .onComplete (onSuccess (HttpClientRequest ::sendHead ));
2869+ .onComplete (onSuccess (HttpClientRequest ::writeHead ));
28702870 await ();
28712871 }
28722872
@@ -2890,7 +2890,7 @@ public void testServerConnectionExceptionHandler() throws Exception {
28902890 client .request (requestOptions )
28912891 .onComplete (onSuccess (req -> {
28922892 req .putHeader ("the_header" , TestUtils .randomAlphaString (10000 ));
2893- req .sendHead ();
2893+ req .writeHead ();
28942894 }));
28952895 });
28962896 await ();
@@ -2911,7 +2911,7 @@ public void testServerExceptionHandler() throws Exception {
29112911 client .request (requestOptions ).onComplete (onSuccess (req -> {
29122912 req
29132913 .putHeader ("the_header" , TestUtils .randomAlphaString (10000 ))
2914- .sendHead ();
2914+ .writeHead ();
29152915 }));
29162916 await ();
29172917 }
@@ -3087,7 +3087,7 @@ public void testResetKeepAliveClientRequest() throws Exception {
30873087 client .request (requestOptions ).onSuccess (req2 -> {
30883088 req2
30893089 .response ().onComplete (onFailure (err -> complete ()));
3090- req2 .sendHead ().onComplete (onSuccess (v -> {
3090+ req2 .writeHead ().onComplete (onSuccess (v -> {
30913091 assertTrue (req2 .reset ().succeeded ());
30923092 }));
30933093 });
@@ -3153,7 +3153,7 @@ public void testResetPipelinedClientRequest() throws Exception {
31533153 .setMethod (HttpMethod .POST )
31543154 ).onComplete (onSuccess (req2 -> {
31553155 req2 .response ().onComplete (onFailure (resp -> complete ()));
3156- req2 .sendHead ();
3156+ req2 .writeHead ();
31573157 doReset .thenAccept (v2 -> {
31583158 assertTrue (req2 .reset ().succeeded ());
31593159 });
@@ -3242,11 +3242,11 @@ private void testCloseTheConnectionAfterResetPersistentClientRequest(boolean pip
32423242 complete ();
32433243 }));
32443244 });
3245- req1 .sendHead ().onComplete (v -> {
3245+ req1 .writeHead ().onComplete (v -> {
32463246 assertTrue (req1 .reset ().succeeded ());
32473247 });
32483248 } else {
3249- req1 .sendHead ().onComplete (v -> {
3249+ req1 .writeHead ().onComplete (v -> {
32503250 assertTrue (req1 .reset ().succeeded ());
32513251 });
32523252 client .request (new RequestOptions (requestOptions ).setURI ("/somepath" ))
@@ -4440,7 +4440,7 @@ public void testPipeliningQueueDelayed() throws Exception {
44404440 client .request (requestOptions )
44414441 .onComplete (onSuccess (req -> {
44424442 req .response ().onComplete (onSuccess (resp -> complete ()));
4443- req .sendHead ();
4443+ req .writeHead ();
44444444 client .request (requestOptions ).compose (HttpClientRequest ::send ).onComplete (resp -> complete ());
44454445 client .request (requestOptions ).compose (HttpClientRequest ::send ).onComplete (resp -> complete ());
44464446 // Need to wait a little so requests 2 and 3 are appended to the first request
@@ -4570,7 +4570,7 @@ public void testHttpClientRequestShouldCallExceptionHandlerWhenTheClosedHandlerI
45704570 testComplete ();
45714571 }
45724572 });
4573- req .sendHead ().onComplete (onSuccess (v -> {
4573+ req .writeHead ().onComplete (onSuccess (v -> {
45744574 connected .set (true );
45754575 sender .send ();
45764576 }));
@@ -4977,7 +4977,7 @@ public void testClientConnectionGracefulShutdownWhenRequestCompletedAfterRespons
49774977 });
49784978 });
49794979 }));
4980- req .setChunked (true ).sendHead ();
4980+ req .setChunked (true ).writeHead ();
49814981 }));
49824982 await ();
49834983 }
@@ -5535,7 +5535,7 @@ public void testDoNotRecycleWhenRequestIsNotEnded() throws Exception {
55355535 case 0 :
55365536 assertTrue (ar .succeeded ());
55375537 HttpClientRequest req = ar .result ();
5538- req .sendHead ();
5538+ req .writeHead ();
55395539 req .response ().onComplete (onSuccess (resp -> {
55405540 complete ();
55415541 }));
@@ -5563,7 +5563,7 @@ public void testRecycleConnectionOnRequestEnd() throws Exception {
55635563 for (int i = 0 ;i < numRequests ;i ++) {
55645564 Future <HttpClientRequest > fut = client .request (requestOptions );
55655565 fut .onComplete (onSuccess (request -> {
5566- request .setChunked (true ).sendHead ();
5566+ request .setChunked (true ).writeHead ();
55675567 request .response ().compose (HttpClientResponse ::body ).onComplete (onSuccess (v -> {
55685568 vertx .setTimer (10 , id -> request .end ());
55695569 complete ();
@@ -5593,7 +5593,7 @@ public void testFailPendingRequestAllocationWhenConnectionIsClosed() throws Exce
55935593 case 0 :
55945594 assertTrue (ar .succeeded ());
55955595 HttpClientRequest req = ar .result ();
5596- req .sendHead ();
5596+ req .writeHead ();
55975597 req .response ().onComplete (onSuccess (resp -> {
55985598 complete ();
55995599 }));
0 commit comments