HttpResponse

This commit is contained in:
redkale
2024-11-09 23:58:08 +08:00
parent bfb0848fa2
commit 84ac030c42
2 changed files with 1 additions and 5 deletions

View File

@@ -395,10 +395,6 @@ public abstract class Response<C extends Context, R extends Request<C>> {
}
}
protected void send(ByteTuple array, CompletionHandler<Integer, Void> handler) {
this.channel.writeInIOThread(array, handler);
}
public C getContext() {
return context;
}

View File

@@ -1248,7 +1248,7 @@ public class HttpResponse extends Response<HttpContext, HttpRequest> {
protected void sendHeader(CompletionHandler<Integer, Void> handler) {
this.contentLength = 0;
createHeader();
super.send(headerArray, handler);
this.channel.writeInIOThread(headerArray, handler);
}
/**