lazyHeader

This commit is contained in:
redkale
2024-08-16 09:37:50 +08:00
parent 60b4425a47
commit e7ed4ae9bc
5 changed files with 102 additions and 85 deletions

View File

@@ -54,12 +54,15 @@ public class RestSleepTest {
OutputStream out = socket.getOutputStream();
out.write(("GET /test/sleep200 HTTP/1.1\r\n"
+ "Connection: Keep-Alive\r\n"
+ "Content-Length: 0\r\n"
+ "\r\n"
+ "GET /test/sleep300 HTTP/1.1\r\n"
+ "Connection: Keep-Alive\r\n"
+ "Content-Length: 0\r\n"
+ "\r\n"
+ "GET /test/sleep500 HTTP/1.1\r\n"
+ "Connection: Keep-Alive\r\n"
+ "Content-Length: 0\r\n"
+ "\r\n")
.getBytes());
InputStream in = socket.getInputStream();