code: void setHTTPResponse(HTTPResponse resp) {
          lock.lock();
          try {
              if (response != null) {
                  throw(new IllegalStateException(
                          "HTTPResponse was already set"));
              }
              response = resp;
              ready.signalAll();
          } finally {
              lock.unlock();
          }
      }
docs: Set the HTTPResponse instance.
  
  @return HTTPResponse instance associated with the request.