code: protected void processResponseHeaders(HttpState state,
          HttpConnection conn) {
          LOG.trace("enter HttpMethodBase.processResponseHeaders(HttpState, "
              + "HttpConnection)");
  
          CookieSpec parser = getCookieSpec(state);
  
          // process set-cookie headers
          Header[] headers = getResponseHeaderGroup().getHeaders("set-cookie");
          processCookieHeaders(parser, headers, state, conn);
  
          // see if the cookie spec supports cookie versioning.
          if (parser instanceof CookieVersionSupport) {
              CookieVersionSupport versupport = (CookieVersionSupport) parser;
              if (versupport.getVersion() > 0) {
                  // process set-cookie2 headers.
                  // Cookie2 will replace equivalent Cookie instances
                  headers = getResponseHeaderGroup().getHeaders("set-cookie2");
                  processCookieHeaders(parser, headers, state, conn);
              }
          }
      }
docs: This method is invoked immediately after
  {@link #readResponseHeaders(HttpState,HttpConnection)} and can be overridden by
  sub-classes in order to provide custom response headers processing.
  
  <p>
  This implementation will handle the <tt>Set-Cookie</tt> and
  <tt>Set-Cookie2</tt> headers, if any, adding the relevant cookies to
  the given {@link HttpState}.
  </p>
  
  @param state the {@link HttpState state} information associated with this method
  @param conn the {@link HttpConnection connection} used to execute
  this HTTP method
  
  @see #readResponse
  @see #readResponseHeaders