private void serveCached(ReqImpl req, CachedResp resp) { Channel channel = req.channel(); req.cached(true); HttpIO.INSTANCE.respond(HttpUtils.req(req), channel, -1, -1, resp.statusCode, req.isKeepAlive(), resp.contentType, new RespBodyBuffer(resp.body.duplicate()), resp.headers, null); channel.send().closeIf(!req.isKeepAlive()); }
void done(Req req) { ReqImpl reqq = (ReqImpl) req; reqq.doneProcessing(); Channel channel = reqq.channel(); channel.send(); channel.closeIf(!reqq.isKeepAlive()); }
private void serveCached(ReqImpl req, CachedResp resp) { Channel channel = req.channel(); req.cached(true); HttpIO.INSTANCE.respond(HttpUtils.req(req), channel, -1, -1, resp.statusCode, req.isKeepAlive(), resp.contentType, new RespBodyBuffer(resp.body.duplicate()), resp.headers, null); channel.send().closeIf(!req.isKeepAlive()); }
void done(Req req) { ReqImpl reqq = (ReqImpl) req; reqq.doneProcessing(); Channel channel = reqq.channel(); channel.send(); channel.closeIf(!reqq.isKeepAlive()); }