This commit is contained in:
Redkale
2017-03-07 11:58:27 +08:00
parent 024147344b
commit b448514e40

View File

@@ -148,6 +148,15 @@ public abstract class Response<C extends Context, R extends Request<C>> {
return output;
}
/**
* 是否已关闭
*
* @return boolean
*/
public boolean isClosed() {
return !this.inited;
}
public void finish() {
this.finish(false);
}