Source:
public boolean exitAfterIntercept(Channel channel, NettyResponseFuture<?> future, AsyncHandler<?> handler, HttpResponse response, HttpResponseStatus status, HttpHeaders responseHeaders) throws Exception { HttpRequest httpRequest = future.getNettyRequest().getHttpRequest(); ProxyServer proxyServer = future.getProxyServer(); int statusCode = response.status().code(); Request request = future.getCurrentRequest(); Realm realm = request.getRealm() != null ? request.getRealm() : config.getRealm(); CookieStore cookieStore = config.getCookieStore(); CookieStore requestCookieStore = request.getCookieStore(); if (cookieStore != null || requestCookieStore != null) { for (String cookieStr : responseHeaders.getAll(SET_COOKIE)) { Cookie c = cookieDecoder.decode(cookieStr); if (c != null) { if (cookieStore != null) { cookieStore.add(future.getCurrentRequest().getUri(), c); } if (requestCookieStore != null) { requestCookieStore.add(request.getUri(), c); } } } } if (hasResponseFilters && responseFiltersInterceptor.exitAfterProcessingFilters(channel, future, handler, status, responseHeaders)) { return true; } if (statusCode == UNAUTHORIZED_401) { return unauthorized401Interceptor.exitAfterHandling401(channel, future, response, request, realm, httpRequest); } else if (statusCode == PROXY_AUTHENTICATION_REQUIRED_407) { return proxyUnauthorized407Interceptor.exitAfterHandling407(channel, future, response, request, proxyServer, httpRequest); } else if (statusCode == CONTINUE_100) { return continue100Interceptor.exitAfterHandling100(channel, future); } else if (Redirect30xInterceptor.REDIRECT_STATUSES.contains(statusCode)) { return redirect30xInterceptor.exitAfterHandlingRedirect(channel, future, response, request, statusCode, realm); } else if (httpRequest.method() == HttpMethod.CONNECT && statusCode == OK_200) { return connectSuccessInterceptor.exitAfterHandlingConnect(channel, future, request, proxyServer); } return false; }

Target:
public boolean exitAfterIntercept(Channel channel, NettyResponseFuture<?> future, AsyncHandler<?> handler, HttpResponse response, HttpResponseStatus status, HttpHeaders responseHeaders) throws Exception { HttpRequest httpRequest = future.getNettyRequest().getHttpRequest(); ProxyServer proxyServer = future.getProxyServer(); int statusCode = response.status().code(); Request request = future.getCurrentRequest(); Realm realm = request.getRealm() != null ? request.getRealm() : config.getRealm(); CookieStore cookieStore = request.getCookieStore() != null ? request.getCookieStore() : config.getCookieStore(); if (cookieStore != null) { for (String cookieStr : responseHeaders.getAll(SET_COOKIE)) { Cookie c = cookieDecoder.decode(cookieStr); if (c != null) { cookieStore.add(future.getCurrentRequest().getUri(), c); } } } if (hasResponseFilters && responseFiltersInterceptor.exitAfterProcessingFilters(channel, future, handler, status, responseHeaders)) { return true; } if (statusCode == UNAUTHORIZED_401) { return unauthorized401Interceptor.exitAfterHandling401(channel, future, response, request, realm, httpRequest); } else if (statusCode == PROXY_AUTHENTICATION_REQUIRED_407) { return proxyUnauthorized407Interceptor.exitAfterHandling407(channel, future, response, request, proxyServer, httpRequest); } else if (statusCode == CONTINUE_100) { return continue100Interceptor.exitAfterHandling100(channel, future); } else if (Redirect30xInterceptor.REDIRECT_STATUSES.contains(statusCode)) { return redirect30xInterceptor.exitAfterHandlingRedirect(channel, future, response, request, statusCode, realm); } else if (httpRequest.method() == HttpMethod.CONNECT && statusCode == OK_200) { return connectSuccessInterceptor.exitAfterHandlingConnect(channel, future, request, proxyServer); } return false; }