use of com.webpieces.hpack.api.dto.Http2Response in project webpieces by deanhiller.
the class ProxyResponse method sendRedirectAndClearCookie.
public void sendRedirectAndClearCookie(RouterRequest req, String badCookieName) {
RedirectResponse httpResponse = new RedirectResponse(false, req.isHttps, req.domain, req.port, req.relativePath);
Http2Response response = createRedirect(httpResponse);
responseCreator.addDeleteCookie(response, badCookieName);
log.info("sending REDIRECT(due to bad cookie) response responseSender=" + stream);
stream.sendResponse(response);
channelCloser.closeIfNeeded(request, stream);
}
Aggregations