HttpResponse
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user